cave.cpp: In function 'void exploreCave(int)':
cave.cpp:13:20: error: 'n' was not declared in this scope
13 | int idx = 0, a[n] = {}, b[n];
| ^
cave.cpp:14:33: error: 'b' was not declared in this scope
14 | for (int i = 0; i < n; i++) b[i] = i;
| ^
cave.cpp:15:34: error: 'a' was not declared in this scope
15 | while ((idx = tryCombination(a)) != -1) {
| ^
cave.cpp:18:12: error: 'a' was not declared in this scope
18 | answer(a, b);
| ^
cave.cpp:18:15: error: 'b' was not declared in this scope
18 | answer(a, b);
| ^