Problem addition
User 3lvian
Submission Time 2023-03-11 00:38:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:8:21: error: no match for ‘operator+’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’})
8 | cout << (cin >> a) + (cin >> b);
| ~~~~~~~~~~ ^ ~~~~~~~~~~
| | |
| | basic_istream<[...]>
| basic_istream<[...]>
addition.cpp:8:21: note: candidate: ‘operator+(int, int)’ <built-in>
8 | cout << (cin >> a) + (cin >> b);
| ~~~~~~~~~~~^~~~~~~~~~~~
addition.cpp:8:21: note: no known conversion for argument 2 from ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
fr