Problem evenorodd
User BoneMeBurner
Submission Time 2023-04-14 15:15:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:7:2: error: expected initializer before ‘cin’
7 | cin >> i;
| ^~~
evenorodd.cpp:8:6: error: ‘i’ was not declared in this scope
8 | if (i % 2) == 1{
| ^
evenorodd.cpp:8:13: error: expected primary-expression before ‘==’ token
8 | if (i % 2) == 1{
| ^~
evenorodd.cpp:13:2: error: expected ‘}’ at end of input
13 | }
| ^
evenorodd.cpp:5:11: note: to match this ‘{’
5 | int main(){
| ^