Problem | greeting |
---|---|
User | Adflhjk |
Submission Time | 2023-11-08 09:55:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
greeting.cpp:5:10: error: missing terminating " character
5 | cin>>"Xiao\Ming\";
| ^~~~~~~~~~~~~
greeting.cpp: In function ‘int main()’:
greeting.cpp:5:8: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::ostream’ {aka ‘std::basic_ostream<char>’})
5 | cin>>"Xiao\Ming\";
| ~~~^~
| |
| std::istream {aka std::basic_istream<char>}
6 | cout<<"Xiao\Ming\ni\hao,\xin\nian\kuai\le!";
| ~~~~
| |
| std::ostream {aka std::basic_ostream<char>}
greeting.cpp:5:8: note: candidate: ‘operator>>(int, int)’ <built-in>
5 | cin>>"Xiao\Ming\";
| ~~~^~~~~~~~~~~~~~~
6 | cout<<"Xiao\Ming\ni\hao,\xin\nian\kuai\le!";
| ~~~~
greeting.cpp:5:8: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘