Problem | evenorodd |
---|---|
User | ultbiaslia |
Submission Time | 2023-11-08 10:57:46 |
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: expected ‘)’ before ‘is’
6 | if (5/2 is whole) {
| ~ ^~~
| )
evenorodd.cpp:7:5: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
7 | print "even";
| ^~~~~
| printf
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:4: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
9 | print "odd";
| ^~~~~
| printf
evenorodd.cpp: At global scope:
evenorodd.cpp:12:2: error: expected unqualified-id before ‘if’
12 | if (6/2 is whole