Problem evenorodd
User bribritt
Submission Time 2025-12-16 22:22:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:11:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
11 | cin >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from evenorodd.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
evenorodd.cpp:2:17: error: ‘a’ was not declared in this scope
2 | #define f(x) if(a==x) cout<<"Even"; if(a==x+1) cout<<"Odd";
| ^
evenorodd.cpp:3:14: note: in expansion of macro ‘f’
3 | #define g(x) f(x) f(x+2) f(x+4) f(x+6) f(x+8)
| ^
evenorodd.cpp:4:14: note: in expansion of macro ‘g’
4 | #define h(x) g(x) g(x+10) g(x+20) g(x+30) g(x+40) g(x+50) g(x+60) g(x+70) g(x+80) g(x+90)
| ^
evenorodd.cpp:5: