Problem evenorodd
User Xavier
Submission Time 2025-06-16 16:34:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:9:13: error: no match for ‘operator>’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘int’)
9 | cout << a > 0;
| ~~~~~~~~~ ^ ~
| | |
| | int
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
evenorodd.cpp:9:13: note: candidate: ‘operator>(int, int)’ <built-in>
9 | cout << a > 0;
| ~~~~~~~~~~^~~
evenorodd.cpp:9:13: note: no known conversion for argument 1 from ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from evenorodd.cpp:1:
/usr/include/c++/9/bits/regex.h:1081:5: note: candidate: ‘template&l