Problem greeting
User zixin
Submission Time 2023-11-10 13:49:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp: In function ‘int main()’:
greeting.cpp:5:2: error: expected initializer before ‘cin’
5 | cin >> n;
| ^~~
greeting.cpp:6:52: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | cout << "xiao ming ni hao, xin nian kuai le!" << n
| ^
| yn
greeting.cpp:6:52: error: expected ‘}’ at end of input
greeting.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^