Problem kangaroohunt
User NiXNull
Submission Time 2025-12-29 13:13:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

kangaroohunt.cpp: In function ‘int main()’:
kangaroohunt.cpp:35:19: error: ‘n’ was not declared in this scope
35 | for(int i=0;i<n;++i) if(ARR[i] == 0) confuse(i, i);
| ^
kangaroohunt.cpp: At global scope:
kangaroohunt.cpp:37:5: error: expected unqualified-id before ‘for’
37 | for (int i = 1; i <= N; i++) {
| ^~~
kangaroohunt.cpp:37:21: error: ‘i’ does not name a type
37 | for (int i = 1; i <= N; i++) {
| ^
kangaroohunt.cpp:37:29: error: ‘i’ does not name a type
37 | for (int i = 1; i <= N; i++) {
| ^
kangaroohunt.cpp:40:9: error: ‘cout’ does not name a type
40 | cout << "Accepted: " << qtimes << " attempts";
| ^~~~
kangaroohunt.cpp:41:1: error: expected declaration before ‘}’ token
41 | }
| ^