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