Problem addition
User jeberechieze
Submission Time 2026-10-27 14:06:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:7:6: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::ostream’ {aka ‘std::basic_ostream<char>’})
7 | cin >> cout << a + b;
| ~~~ ^~ ~~~~
| | |
| | std::ostream {aka std::basic_ostream<char>}
| std::istream {aka std::basic_istream<char>}
addition.cpp:7:6: note: candidate: ‘operator>>(int, int)’ <built-in>
7 | cin >> cout << a + b;
| ~~~~^~~~~~~
addition.cpp:7:6: 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/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,