Problem cave
User bachnguyen123
Submission Time 2026-01-05 20:10:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘bool check(int*, int, int, int)’:
cave.cpp:11:10: error: ‘tryCombination’ was not declared in this scope
11 | return (tryCombination(arr) != val);
| ^~~~~~~~~~~~~~
cave.cpp: In function ‘void exploreCave(int)’:
cave.cpp:22:13: error: ‘tryCombination’ was not declared in this scope
22 | int res = tryCombination(def);
| ^~~~~~~~~~~~~~
cave.cpp:39:9: error: ‘answer’ was not declared in this scope
39 | return answer(s,d);
| ^~~~~~
cave.cpp:39:19: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
39 | return answer(s,d);
| ^