Problem greeting
User Kanish
Submission Time 2023-11-08 11:31:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp:8:36: error: missing terminating ' character
8 | const string greeting = name + 'ni hao, xin nian kuai le!";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
greeting.cpp: In function ‘int main()’:
greeting.cpp:10:5: error: expected primary-expression before ‘const’
10 | const string spaces(greeting.size(), ' ');
| ^~~~~
greeting.cpp:12:34: error: ‘spaces’ was not declared in this scope
12 | const string second = "* " + spaces + " *";
| ^~~~~~
greeting.cpp:22:13: error: expected ‘}’ at end of input
22 | return 0;
| ^
greeting.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^