cave.cpp: In function 'void exploreCave(int)':
cave.cpp:20:34: error: cannot convert 'std::vector<int>' to 'int*'
20 | int trt = tryCombination(S);
| ^
| |
| 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:48:34: error: cannot convert 'std::vector<int>' to 'int*'
48 | trt = tryCombination(S);
| ^
| |
| std::vector<int>
cave.h:8:24: note: initializing argument 1 of 'int tryCombination(int*)'
8 | int tryCombination(int S[]);
| ~~~~^~~
cave.cpp:63:12: error: cannot convert 'std::vector<int>' to 'int*'
63 | answer(S, D);
| ^
| |
| std::vector<int>
cave.h:9:17: note: initializing argument 1 of 'void answer(int*, int*)'
9 | void answer(int S[], int D[]);
| ~~~~^~~