Problem | duckhunt13 |
---|---|
User | MegaG |
Submission Time | 2025-09-01 17:03:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:33:9: error: ‘stop’ was not declared in this scope
33 | if(stop == false){
| ^~~~
duckhunt13.cpp:36:8: error: ‘dk’ was not declared in this scope
36 | dk++
| ^~
duckhunt13.cpp:42:14: error: ‘dk’ was not declared in this scope
42 | cout << dk << "\n";
| ^~
duckhunt13.cpp:44:6: error: ‘stop’ was not declared in this scope
44 | stop =