Problem duckhunt13
User MegaG
Submission Time 2025-09-01 17:04:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt13.cpp: In function ‘int main()’:
duckhunt13.cpp:19:21: error: ‘k’ was not declared in this scope
19 | for(int i = 0; i < k ; i++){
| ^
duckhunt13.cpp:21:3: error: expected initializer before ‘cin’
21 | cin >> j
| ^~~
duckhunt13.cpp:26:3: error: ‘else’ without a previous ‘if’
26 | else if(j == 2){
| ^~~~
duckhunt13.cpp:26:11: error: ‘j’ was not declared in this scope
26 | else if(j == 2){
| ^
duckhunt13.cpp:36:12: error: expected ‘;’ before ‘}’ token
36 | dk++
| ^
| ;
37 | }
| ~
duckhunt13.cpp:46:5: error: expected ‘}’ before ‘else’
46 | else{
| ^~~~
duckhunt13.cpp:27:20: note: to match this ‘{’
27 | if(b.size() > 0){
| ^
duckhunt13.cpp: At global scope:
duckhunt13.cpp:52:1: error: expected declara