Problem evenorodd
User claireau
Submission Time 2023-11-08 11:18:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:7:9: error: expected primary-expression before ‘int’
7 | if (a/2=int) == true;
| ^~~
evenorodd.cpp:7:9: error: expected ‘)’ before ‘int’
7 | if (a/2=int) == true;
| ~ ^~~
| )
evenorodd.cpp:7:14: error: expected primary-expression before ‘==’ token
7 | if (a/2=int) == true;
| ^~
evenorodd.cpp:8:8: error: ‘even’ was not declared in this scope
8 | cout<< even;
| ^~~~
evenorodd.cpp:9:1: error: ‘else’ without a previous ‘if’
9 | else if (a/2=int) == !true;
| ^~~~
evenorodd.cpp:9:14: error: expected primary-expression before ‘int’
9 | else if (a/2=int) == !true;
| ^~~
evenorodd.cpp:9:14: error: expected ‘)’ before ‘int’
9 | else if (a/2=int) == !true;
| ~ ^~~
| )
evenorodd.cpp:9:19: error: expected prim