Problem | evenorodd |
---|---|
User | Adflhjk |
Submission Time | 2023-11-08 10:58:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:5:9: error: expected ‘)’ before ‘is’
5 | if (5/2 is whole) {
| ~ ^~~
| )
evenorodd.cpp:6:3: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
6 | print "even";
| ^~~~~
| printf
evenorodd.cpp:8:14: error: expected ‘)’ before ‘is’
8 | else if (5/2 is not whole) {
| ~ ^~~
| )
evenorodd.cpp:9:3: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
9 | print "odd";
| ^~~~~
| printf
evenorodd.cpp:11:9: error: expected ‘)’ before ‘is’
11 | if (6/2 is whole) {
| ~ ^~~
| )
evenorodd.cpp:12:3: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
12 | print "even";
| ^~~~~
| printf
evenorodd.cpp:14:14: error: expected ‘)’ before ‘is’
14 | else i