Problem | exam |
---|---|
User | ansellee |
Submission Time | 2023-12-19 23:25:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:5:10: error: no match for ‘operator==’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
5 | if (cin == 1) {
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
exam.cpp:5:10: note: candidate: ‘operator==(int, int)’ <built-in>
5 | if (cin == 1) {
| ~~~~^~~~
exam.cpp:5:10: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from exam.cpp:1:
/usr/include/c++/9/bits/postypes.h:222:5: note: candidate: ‘template<class _StateT> bool std::operator==(const std::fpos<_StateT>