Problem evenorodd
User ultbiaslia
Submission Time 2023-11-08 11:23:41
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 ‘}’ before ‘else’
9 | else if (5/2 is not whole)
| ^~~~
evenorodd.cpp:6:19: note: to match this ‘{’
6 | if (5/2 is whole){
| ^
evenorodd.cpp:9:15: error: expected ‘)’ before ‘is’
9 | else if (5/2 is not whole)
| ~ ^~~
| )
evenorodd.cpp:10:10: error: expected ‘;’ before string constant
10 | printf "odd";
| ^~~~~~
| ;
evenorodd.cpp: At global scope:
evenorodd.cpp:14:2: error: expected unqualified-id before ‘if’
14 | if (6/2 is whole){
| ^~
evenorodd.cpp: