Problem | addition |
---|---|
User | 3lvian |
Submission Time | 2023-03-11 00:37:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:5:14: error: no match for ‘operator+’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::istream’ {aka ‘std::basic_istream<char>’})
5 | cout << cin + cin;
| ~~~ ^ ~~~
| | |
| | basic_istream<[...]>
| basic_istream<[...]>
addition.cpp:5:14: note: candidate: ‘operator+(int, int)’ <built-in>
5 | cout << cin + cin;
| ~~~~^~~~~
addition.cpp:5:14: note: no known conversion for argument 2 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,