Problem evenorodd
User ultbiaslia
Submission Time 2023-11-08 13:27:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:5:6: error: ‘number’ was not declared in this scope
5 | if (number/2 is whole) {
| ^~~~~~
evenorodd.cpp:5:14: error: expected ‘)’ before ‘is’
5 | if (number/2 is whole) {
| ~ ^~~
| )
evenorodd.cpp:6:17: error: expected ‘;’ before ‘}’ token
6 | cout << "even"
| ^
| ;
7 | }
| ~
evenorodd.cpp:8:7: error: expected ‘(’ before ‘else’
8 | if else (number/2 is not whole) {
| ^~~~
| (