Problem evenorodd
User ultbiaslia
Submission Time 2023-11-08 11:00:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:6:9: error: expected ‘)’ before ‘is’
6 | if (5/2 is whole)
| ~ ^~~
| )
evenorodd.cpp:7:11: error: expected ‘;’ before string constant
7 | printf "even"
| ^~~~~~~
| ;
evenorodd.cpp:12:9: error: expected ‘)’ before ‘is’
12 | if (6/2 is whole)
| ~ ^~~
| )
evenorodd.cpp:13:11: error: expected ‘;’ before string constant
13 | printf "even"
| ^~~~~~~
| ;
evenorodd.cpp: At global scope:
evenorodd.cpp:18:3: error: expected unqualified-id before ‘return’
18 | return 0;
| ^~~~~~
evenorodd.cpp:19:1: error: expected declaration before ‘}’ token
19 | }
| ^