Problem duckhunt42
User haroldpyh
Submission Time 2025-12-26 09:17:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt42.cpp: In function ‘void dfs(long long int)’:
duckhunt42.cpp:12:17: error: found ‘:’ in nested-name-specifier, expected ‘::’
12 | for (neighbour: adjlist[curr]) {
| ^
| ::
duckhunt42.cpp:12:8: error: ‘neighbour’ has not been declared
12 | for (neighbour: adjlist[curr]) {
| ^~~~~~~~~
duckhunt42.cpp:18:2: error: expected primary-expression before ‘}’ token
18 | }
| ^
duckhunt42.cpp:17:4: error: expected ‘;’ before ‘}’ token
17 | }
| ^
| ;
18 | }
| ~
duckhunt42.cpp:18:2: error: expected primary-expression before ‘}’ token
18 | }
| ^
duckhunt42.cpp:17:4: error: expected ‘)’ before ‘}’ token
17 | }
| ^
| )
18 | }
| ~
duckhunt42.cpp:12:7: note: to match this ‘(’
12 | for (neighbour: adjlist[curr]) {
| ^
duckhunt42.cpp:18:2