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