cave.cpp: In function 'void exploreCave(int)':
cave.cpp:11:37: error: cannot convert 'bool*' to 'int*'
11 | int in=tryCombination(s);
| ^
| |
| bool*
In file included from cave.cpp:2:
cave.h:8:24: note: initializing argument 1 of 'int tryCombination(int*)'
8 | int tryCombination(int S[]);
| ~~~~^~~
cave.cpp:15:47: error: 'vis' was not declared in this scope
15 | for(int j=l;j<=m;j++)if(!vis[j])s[j]=!s[j];
| ^~~
cave.cpp:16:45: error: cannot convert 'bool*' to 'int*'
16 | int cur=tryCombination(s);
| ^
| |
| bool*
In file included from cave.cpp:2:
cave.h:8:24: note: initializing argument 1 of 'int tryCombination(int*)'
8 | int tryCombination(int S[]);
| ~~~~^~~
cave.cpp:17:46: error: 'vis' was not declared in this scope
17 | for(int j=l;j<m;j++)if(!vis[j])s[j]=!s[j];
| ^~~
cave.cpp:25:15: error: cannot convert 'bool*' to 'int*'
25 | answer(s,d);
| ^
| |
| bool*
In file included from cave.cpp:2:
cave.h:9:17: note: initializing argument 1 of 'void answer(int*, int*)'
9 | void answer(int S[], int D[]);
| ~~~~^~~