Problem | addition2 |
---|---|
User | wongethan8192 |
Submission Time | 2023-03-06 16:20:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition2.cpp: In function ‘int main()’:
addition2.cpp:3:39: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
3 | int a, b; std::cin >> a >> b;std::cout>>a+b;
| ~~~~~~~~~^~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
addition2.cpp:3:39: note: candidate: ‘operator>>(int, int)’ <built-in>
3 | int a, b; std::cin >> a >> b;std::cout>>a+b;
| ~~~~~~~~~^~~~~
addition2.cpp:3:39: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from addition2.cpp:1:
/usr/i