| Problem | exam |
|---|---|
| User | FailureJin |
| Submission Time | 2026-03-03 15:07:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:6:13: error: no match for ‘operator==’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘int’)
6 | if (cin>>x == 1){
| ~~~~~~ ^~ ~
| | |
| | int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
exam.cpp:6:13: note: candidate: ‘operator==(int, int)’ <built-in>
6 | if (cin>>x == 1){
| ~~~~~~~^~~~
exam.cpp:6:13: 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/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/inc