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

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:6:9: error: lvalue required as left operand of assignment
6 | if (a%2=0) == true
| ^
evenorodd.cpp:6:12: error: expected primary-expression before ‘==’ token
6 | if (a%2=0) == true
| ^~
evenorodd.cpp:9:1: error: ‘else’ without a previous ‘if’
9 | else if (a%2=0) == !true
| ^~~~
evenorodd.cpp:9:14: error: lvalue required as left operand of assignment
9 | else if (a%2=0) == !true
| ^
evenorodd.cpp:9:17: error: expected primary-expression before ‘==’ token
9 | else if (a%2=0) == !true
| ^~