Problem | evenorodd |
---|---|
User | ultbiaslia |
Submission Time | 2023-11-08 11:25:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:7:11: error: expected ‘;’ before string constant
7 | printf "even";
| ^~~~~~~
| ;
evenorodd.cpp:9:3: error: expected ‘}’ before ‘else’
9 | else if (5/2<3)
| ^~~~
evenorodd.cpp:6:12: note: to match this ‘{’
6 | if (5/2>3){
| ^
evenorodd.cpp:10:10: error: expected ‘;’ before string constant
10 | printf "odd";
| ^~~~~~
| ;
evenorodd.cpp: At global scope:
evenorodd.cpp:14:2: error: expected unqualified-id before ‘if’
14 | if (6/2=3){
| ^~
evenorodd.cpp:22:3: error: expected unqualified-id before ‘return’
22 | return 0;
| ^~~~~~
evenorodd.cpp:23:1: error: expected declaration before ‘}’ token
23 | }
| ^