Problem greeting
User Minjia
Submission Time 2023-11-08 11:01:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp: In function ‘int main()’:
greeting.cpp:6:18: error: expected ‘;’ before ‘string’
6 | getline(cin , s)
| ^
| ;
7 | string a;
| ~~~~~~
greeting.cpp:8:2: error: ‘a’ was not declared in this scope
8 | a = s + " ni hao, xin nian kuai le!";
| ^