Problem duckhunt13
User Avinash
Submission Time 2025-06-18 09:43:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt13.cpp: In function ‘int main()’:
duckhunt13.cpp:16:4: error: ‘ducks’ was not declared in this scope; did you mean ‘duck’?
16 | ducks.pushback(X);
| ^~~~~
| duck
duckhunt13.cpp:19:4: error: expected ‘,’ or ‘;’ before ‘int’
19 | int bestType = 1
| ^~~
duckhunt13.cpp:21:20: error: ‘t’ was not declared in this scope
21 | for (int t = 1; t <= 10; t++) {
| ^
duckhunt13.cpp:36:13: error: expected ‘}’ at end of input
36 | }
| ^
duckhunt13.cpp:17:10: note: to match this ‘{’
17 | } else {
| ^
duckhunt13.cpp:36:13: error: expected ‘}’ at end of input
36 | }
| ^
duckhunt13.cpp:9:30: note: to match this ‘{’
9 | for (int i = 0; i < Q; i++) {
| ^
duckhunt13.cpp:36:13: error: expected ‘}’ at end of input
36 |