Problem | goodbye |
---|---|
User | xiaopiget |
Submission Time | 2024-06-23 19:09:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goodbye.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 | int main(){
| ~~~
goodbye.cpp: In function ‘int main()’:
goodbye.cpp:4:23: error: no match for ‘operator>>’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
4 | cout << "Goodbye S!" >> '\end'
| ~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~
| | |
| | int
| std::basic_ostream<char>
goodbye.cpp:4:23: note: candidate: ‘operator>>(int, int)’ <built-in>
4 | cout << "Goodbye S!" >> '\end'
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
goodbye.cpp:4:23: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from goodbye.cpp: