Problem evenorodd
User ultbiaslia
Submission Time 2023-11-08 11:21:51
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:9:3: error: expected primary-expression before ‘else’
9 | else if (5/2 is not whole)
| ^~~~
evenorodd.cpp:8:4: error: expected ‘)’ before ‘else’
8 | (
| ~^
| )
9 | else if (5/2 is not whole)
| ~~~~
evenorodd.cpp:13:9: error: expected ‘)’ before ‘is’
13 | if (6/2 is whole){
| ~ ^~~
| )
evenorodd.cpp:14:11: error: expected ‘;’ before string constant
14 | printf "even";
| ^~~~~~~
| ;
evenorodd.cpp:16:3: error: expected primary-expression before ‘else’
16 | else if (6/2 is not whole)