Problem | addition |
---|---|
User | xiaopiget |
Submission Time | 2024-06-23 15:32:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:5:17: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘std::ostream’ {aka ‘std::basic_ostream<char>’})
5 | cout << (a+b) <<
| ~~~~~~~~~~~~~ ^~
| |
| basic_ostream<[...]>
6 | cout sum std::endl ;
| ~~~~
| |
| basic_ostream<[...]>
addition.cpp:5:17: note: candidate: ‘operator<<(int, int)’ <built-in>
5 | cout << (a+b) <<
| ~~~~~~~~~~~~~~^~
6 | cout sum std::endl ;
| ~~~~
addition.cpp:5:17: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/iostream:39,
from addition.cpp:1:
/usr/include/c++/9/o