cave.cpp: In function 'void exploreCave(int)':
cave.cpp:23:37: error: cannot convert 'std::vector<int>' to 'int*'
23 | ans[N-1-i] = tryCombination(S);
| ^
| |
| std::vector<int>
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:32:12: error: cannot convert 'std::vector<int>' to 'int*'
32 | answer(S, ans);
| ^
| |
| std::vector<int>
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[]);
| ~~~~^~~