Problem evenorodd
User sthe2nd
Submission Time 2024-07-08 14:13:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:5:9: error: ‘a’ was not declared in this scope
5 | cin >> a
| ^
evenorodd.cpp:8:4: error: ‘else’ without a previous ‘if’
8 | } else if (a % 2 == 0){
| ^~~~
evenorodd.cpp:9:15: error: expected ‘;’ before ‘}’ token
9 | cout<<"Even"
| ^
| ;
10 | }
| ~