Problem greeting
User Haocheng
Submission Time 2024-11-07 10:03:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp:10:50: error: stray ‘\’ in program
10 | cout << a << " ni hao, xin nian kuai le!” << "\n";
| ^
greeting.cpp:10:52: error: missing terminating " character
10 | cout << a << " ni hao, xin nian kuai le!” << "\n";
| ^~
greeting.cpp: In function ‘int32_t main()’:
greeting.cpp:6:59: error: expected ‘;’ before ‘string’
6 | ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
| ^
| ;
7 |
8 | string a;
| ~~~~~~
greeting.cpp:9:14: error: ‘a’ was not declared in this scope
9 | getline(cin,a);
| ^