Problem cave
User thisusernameistaken
Submission Time 2024-03-11 20:40:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void open(int)’:
cave.cpp:13:28: error: ‘N’ was not declared in this scope
13 | for(int j = 0; j < N; j++)
| ^
cave.cpp:16:19: error: ‘tryCombination’ was not declared in this scope
16 | int ans = tryCombination(S);
| ^~~~~~~~~~~~~~
cave.cpp:18:32: error: ‘N’ was not declared in this scope
18 | for(int j = 0; j < N; j++)
| ^
cave.cpp:21:24: error: ‘N’ was not declared in this scope
21 | int l = 0, r = N - 1;
| ^
cave.cpp: In function ‘void exploreCave(int)’:
cave.cpp:44:9: error: ‘answer’ was not declared in this scope
44 | answer(S, D);
| ^~~~~~