cave.cpp:2:1: error: 'll' does not name a type
2 | ll n;
| ^~
cave.cpp:3:1: error: 'll' does not name a type
3 | ll a[maxn];
| ^~
cave.cpp:4:1: error: 'll' does not name a type
4 | ll b[maxn];
| ^~
cave.cpp:5:1: error: 'll' does not name a type
5 | ll c[maxn];
| ^~
cave.cpp: In function 'void exploreCave(int)':
cave.cpp:7:5: error: 'n' was not declared in this scope
7 | n = N;
| ^
cave.cpp:8:9: error: 'll' was not declared in this scope
8 | for(ll i = 0;i<n;i++) b[i] = -1;
| ^~
cave.cpp:8:18: error: 'i' was not declared in this scope
8 | for(ll i = 0;i<n;i++) b[i] = -1;
| ^
cave.cpp:8:27: error: 'b' was not declared in this scope
8 | for(ll i = 0;i<n;i++) b[i] = -1;
| ^
cave.cpp:9:9: error: 'll' was not declared in this scope
9 | for(ll i = 0;i<n;i++) c[i] = 0;
| ^~
cave.cpp:9:18: error: 'i' was not declared in this scope
9 | for(ll i = 0;i<n;i++) c[i] = 0;
| ^
cave.cpp:9:27: error: 'c' was not declared in this scope
9 | for(ll i = 0;i<n;i++) c[i] = 0;
| ^
cave.cpp:10:5: error: 'll' was not declared in this scope
10 | ll e = tryCombination(c);
| ^~
cave.cpp:11:8: error: 'e' was not declared in this scope
11 | if(e==-1){
| ^
cave.cpp:12:15: error: expected ';' before 'i'
12 | for(ll i = 0;i<n;i++){
| ^~
| ;
cave.cpp:12:22: error: 'i' was not declared in this scope
12 | for(ll i = 0;i<n;i++){
| ^
cave.cpp:13:13: error: 'c' was not declared in this scope
13 | c[i] = 1;
| ^
cave.cpp:14:21: error: 'tryCombination' was not declared in this scope
14 | int e = tryCombination(c);
| ^~~~~~~~~~~~~~
cave.cpp:15:13: error: 'b' was not declared in this scope
15 | b[i] = e;
| ^
cave.cpp:18:16: error: 'c' was not declared in this scope
18 | answer(c,b);
| ^
cave.cpp:18:18: error: 'b' was not declared in this scope
18 | answer(c,b);
| ^
cave.cpp:18:9: error: 'answer' was not declared in this scope
18 | answer(c,b);
| ^~~~~~
cave.cpp:21:15: error: 'e' was not declared in this scope
21 | while(e!=n){
| ^
cave.cpp:22:19: error: expected ';' before 'j'
22 | for(ll j = 0;j<n;j++){
| ^~
| ;
cave.cpp:22:26: error: 'j' was not declared in this scope
22 | for(ll j = 0;j<n;j++){
| ^
cave.cpp:23:17: error: 'c' was not declared in this scope
23 | c[j]^=1;
| ^
cave.cpp:24:19: error: expected ';' before 'f'
24 | ll f = tryCombination(c);
| ^~
| ;
cave.cpp:25:20: error: 'f' was not declared in this scope
25 | if(f==-1) f = n;
| ^
cave.cpp:26:20: error: 'f' was not declared in this scope
26 | if(f>e){
| ^
cave.cpp:33:15: error: expected ';' before 'i'
33 | for(ll i = 0;i<n;i++){
| ^~
| ;
cave.cpp:33:22: error: 'i' was not declared in this scope
33 | for(ll i = 0;i<n;i++){
| ^
cave.cpp:34:13: error: 'c' was not declared in this scope
34 | c[i]^=1;
| ^
cave.cpp:35:21: error: 'tryCombination' was not declared in this scope
35 | int e = tryCombination(c);
| ^~~~~~~~~~~~~~
cave.cpp:36:13: error: 'b' was not declared in this scope
36 | b[i] = e;
| ^
cave.cpp:39:16: error: 'c' was not declared in this scope
39 | answer(c,b);
| ^
cave.cpp:39:18: error: 'b' was not declared in this scope
39 | answer(c,b);
| ^
cave.cpp:39:9: error: 'answer' was not declared in this scope
39 | answer(c,b);
| ^~~~~~
cave.cpp:41:10: error: 'a' was not declared in this scope
41 | iota(a,a+n,0);
| ^
cave.cpp:41:5: error: 'iota' was not declared in this scope
41 | iota(a,a+n,0);
| ^~~~
cave.cpp:42:11: error: expected ';' before 'i'
42 | for(ll i = 0;i<n;i++){
| ^~
| ;
cave.cpp:42:18: error: 'i' was not declared in this scope
42 | for(ll i = 0;i<n;i++){
| ^
cave.cpp:43:9: error: 'c' was not declared in this scope
43 | c[i] = 1;
| ^
cave.cpp:44:11: error: expected ';' before 'e'
44 | ll e = tryCombination(c);
| ^~
| ;
cave.cpp:45:12: error: 'e' was not declared in this scope
45 | if(e==-1) e = n;
| ^
cave.cpp:46:12: error: 'e' was not declared in this scope
46 | if(e>i) c[i] = 1;
| ^
cave.cpp:49:12: error: 'c' was not declared in this scope
49 | answer(c,a);
| ^
cave.cpp:49:5: error: 'answer' was not declared in this scope
49 | answer(c,a);
| ^~~~~~