cave.cpp: In function 'void exploreCave(int)':
cave.cpp:19:37: error: cannot convert 'long long int*' to 'int*'
19 | ll x=tryCombination(s);
| ^
| |
| long long int*
In file included from cave.cpp:1:
cave.h:8:24: note: initializing argument 1 of 'int tryCombination(int*)'
8 | int tryCombination(int S[]);
| ~~~~^~~
cave.cpp:23:30: error: 'n' was not declared in this scope
23 | for(ll j=0;j<n;j++){
| ^
cave.cpp:27:38: error: 'n' was not declared in this scope
27 | for(ll j=0;j<n;j++){
| ^
cave.cpp:42:42: error: cannot convert 'long long int*' to 'int*'
42 | x=tryCombination(s);
| ^
| |
| long long int*
In file included from cave.cpp:1:
cave.h:8:24: note: initializing argument 1 of 'int tryCombination(int*)'
8 | int tryCombination(int S[]);
| ~~~~^~~
cave.cpp:55:16: error: cannot convert 'long long int*' to 'int*'
55 | answer(s,k);
| ^
| |
| long long int*
In file included from cave.cpp:1:
cave.h:9:17: note: initializing argument 1 of 'void answer(int*, int*)'
9 | void answer(int S[], int D[]);
| ~~~~^~~