Problem | addition |
---|---|
User | broccolini37 |
Submission Time | 2025-01-20 16:45:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:6:16: error: no match for ‘operator<<’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘int’)
6 | std::cin >> a << b;
| ~~~~~~~~~~~~~ ^~ ~
| | |
| | int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
addition.cpp:6:16: note: candidate: ‘operator<<(int, int)’ <built-in>
6 | std::cin >> a << b;
| ~~~~~~~~~~~~~~^~~~
addition.cpp:6:16: note: no known conversion for argument 1 from ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/bits/basic_string.h:48,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,