Problem evenorodd
User Chris
Submission Time 2024-11-20 09:41:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:9:13: error: expected ‘;’ before ‘cout’
9 | cin >> a
| ^
| ;
10 | cout << (a % 2 == 0 ? "Even" : "Odd");
| ~~~~
evenorodd.cpp:12:13: error: expected ‘;’ before ‘}’ token
12 | return 0
| ^
| ;
13 | }
| ~