cave.cpp: In function 'void exploreCave(int)':
cave.cpp:7:27: error: cannot convert 'std::vector<int>' to 'int*'
7 | if(tryCombination(s)==i){
| ^
| |
| std::vector<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:10:35: error: cannot convert 'std::vector<int>' to 'int*'
10 | if(tryCombination(s)>i){
| ^
| |
| std::vector<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:19:35: error: cannot convert 'std::vector<int>' to 'int*'
19 | if(tryCombination(s)==i){
| ^
| |
| std::vector<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:27:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
27 | ans(s,d);
| ^~~
| abs