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