You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The instructions for the task "Introduce Yourself" state:
Write a simple program that will ask the name of a person and then print the string "Hello Username" (where "Username" should be substituted by the actual name given to the program).
However, the expected answer appears to require that the only text printed to the console is std::cout << "Hello " << name;.
For example,
#include <iostream>
#include <string>
int main() {
std::string name;
std::cout << "What is your name?" << std::endl;
std::cin >> name;
std::cout << "Hello " << name;
return 0;
}
Is an incorrect answer because it contains the text "What is your name?", despite the instruction to ask for the name.
A solution for the integrated test would be to check for the string "Hello Student" on the last line of the output.
The text was updated successfully, but these errors were encountered:
The instructions for the task "Introduce Yourself" state:
However, the expected answer appears to require that the only text printed to the console is
std::cout << "Hello " << name;
.For example,
Is an incorrect answer because it contains the text "What is your name?", despite the instruction to ask for the name.
A solution for the integrated test would be to check for the string "Hello Student" on the last line of the output.
The text was updated successfully, but these errors were encountered: