Problem greeting
User Alexis10
Submission Time 2023-11-08 11:04:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp: In function ‘int main()’:
greeting.cpp:4:5: error: ‘string’ was not declared in this scope; did you mean ‘stdin’?
4 | string a;
| ^~~~~~
| stdin
greeting.cpp:5:14: error: ‘cin’ was not declared in this scope
5 | getline (cin , a);
| ^~~
greeting.cpp:5:20: error: ‘a’ was not declared in this scope
5 | getline (cin , a);
| ^
greeting.cpp:6:5: error: ‘cout’ was not declared in this scope
6 | cout << a << "ni hao xin nian kuai le!";
| ^~~~