Problem | evenorodd |
---|---|
User | claireau |
Submission Time | 2023-11-08 11:30:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:15: error: lvalue required as left operand of assignment
9 | else if (a%2=!0)
| ^
evenorodd.cpp:10:15: error: expected ‘;’ before ‘}’ token
10 | {cout << "odd"};
| ^
| ;