Problem greeting
User sqrt2
Submission Time 2025-09-27 13:45:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp: In function ‘int main()’:
greeting.cpp:6:2: error: ‘str’ was not declared in this scope; did you mean ‘std’?
6 | str S;
| ^~~
| std
greeting.cpp:7:5: error: expected ‘;’ before ‘greeting’
7 | str greeting = "ni hao, xin nian kuai le!";
| ^~~~~~~~~
| ;
greeting.cpp:10:9: error: ‘S’ was not declared in this scope
10 | cin >> S;
| ^
greeting.cpp:12:22: error: ‘greeting’ was not declared in this scope
12 | cout << S << " " << greeting;
| ^~~~~~~~