cave.cpp: In function 'void exploreCave(int)':
cave.cpp:28:31: error: 'n' was not declared in this scope
28 | int l = 0,r = n, ind;
| ^
cave.cpp:50:33: error: 'ind' was not declared in this scope; did you mean 'int'?
50 | ind = r;
| ^~~
| int
cave.cpp:53:33: error: 'ind' was not declared in this scope; did you mean 'int'?
53 | ind = l;
| ^~~
| int
cave.cpp:56:13: error: 'a' was not declared in this scope
56 | a[ind] = curr ^ 1;
| ^
cave.cpp:56:15: error: 'ind' was not declared in this scope; did you mean 'int'?
56 | a[ind] = curr ^ 1;
| ^~~
| int
cave.cpp:57:13: error: 'b' was not declared in this scope
57 | b[ind] = i;
| ^
cave.cpp:59:16: error: 'a' was not declared in this scope
59 | answer(a, b);
| ^
cave.cpp:59:19: error: 'b' was not declared in this scope
59 | answer(a, b);
| ^