Problem | exam |
---|---|
User | PrunJuice |
Submission Time | 2023-10-22 15:19:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:12:6: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::istream’ {aka ‘std::basic_istream<char>’})
12 | cout << cin;
| ~~~~ ^~ ~~~
| | |
| | std::istream {aka std::basic_istream<char>}
| std::ostream {aka std::basic_ostream<char>}
exam.cpp:12:6: note: candidate: ‘operator<<(int, int)’ <built-in>
12 | cout << cin;
| ~~~~~^~~~~~
exam.cpp:12:6: 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/iostream:39,
from exam.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>