Problem | greeting |
---|---|
User | SilverClaw |
Submission Time | 2023-02-10 13:52:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
greeting.cpp: In function ‘int main()’:
greeting.cpp:2:49: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::basic_istream<char>’)
2 | using namespace std;int main(){string name; cin >> getline(cin,name) << name << " ni hao, xin nian kuai le!";}
| ~~~ ^~ ~~~~~~~~~~~~~~~~~
| | |
| | basic_istream<[...]>
| basic_istream<[...]>
greeting.cpp:2:49: note: candidate: ‘operator>>(int, int)’ <built-in>
2 | using namespace std;int main(){string name; cin >> getline(cin,name) << name << " ni hao, xin nian kuai le!";}
| ~~~~^~~~~~~~~~~~~~~~~~~~
greeting.cp