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

Compile Error

greeting.cpp:6:15: error: missing terminating " character
6 | cout << a << "Xiao Ming ni hao, xin nian kuai le! ;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
greeting.cpp: In function ‘int main()’:
greeting.cpp:5:17: error: no matching function for call to ‘getline(std::basic_istream<char>&)’
5 | getline (cin>>a)
| ^
In file included from /usr/include/stdio.h:864,
from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
from greeting.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:1: note: candidate: ‘__ssize_t getline(char**, size_t*, FILE*)’
118 | getline (char **__lineptr, size_t *__n, FILE *__stream)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:1: note: candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/9/string:56,