Problem | greeting |
---|---|
User | wtnetlegend |
Submission Time | 2025-02-04 18:28:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
greeting.cpp:6:14: error: missing terminating " character
6 | cout << s + " ni hao, xin nian kuai le!”;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
greeting.cpp: In function ‘int main()’:
greeting.cpp:5:6: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
5 | cin << s;
| ~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/bits/basic_string.h:48,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,