Problem | duckhunt12 |
---|---|
User | MCSG |
Submission Time | 2025-06-17 10:41:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckhunt12.cpp: In function ‘int main()’:
duckhunt12.cpp:11:13: error: expected ‘(’ before ‘ad’
11 | if ad{
| ^~
| (
duckhunt12.cpp:13:11: error: expected ‘}’ before ‘else’
13 | }else{
| ^~~~
duckhunt12.cpp:10:23: note: to match this ‘{’
10 | if (a==n or a==1){
| ^
duckhunt12.cpp:16:7: error: ‘else’ without a previous ‘if’
16 | }else{
| ^~~~
duckhunt12.cpp:25:15: error: expected primary-expression before ‘or’ token
25 | if (b==n)or(b==1){
| ^~
duckhunt12.cpp:42:10: error: break statement not within loop or switch
42 | break;
| ^~~~~
duckhunt12.cpp: At global scope:
duckhunt12.cpp:48:2: error: expected unqualified-id before ‘return’
48 | return 0;
| ^~~~~~
duckhunt12.cpp:49:1: error: expected declaration before ‘}’ token<