cave.cpp: In function 'void exploreCave(int)':
cave.cpp:28:32: error: cannot convert 'bool*' to 'int*'
28 | int p = tryCombination(s);
| ^
| |
| bool*
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:34:42: error: cannot convert 'bool*' to 'int*'
34 | int pos = tryCombination(s);
| ^
| |
| bool*
cave.h:8:24: note: initializing argument 1 of 'int tryCombination(int*)'
8 | int tryCombination(int S[]);
| ~~~~^~~
cave.cpp:46:38: error: cannot convert 'bool*' to 'int*'
46 | int pos = tryCombination(s);
| ^
| |
| bool*
cave.h:8:24: note: initializing argument 1 of 'int tryCombination(int*)'
8 | int tryCombination(int S[]);
| ~~~~^~~
cave.cpp:57:12: error: cannot convert 'bool*' to 'int*'
57 | answer(s , d);
| ^
| |
| bool*
cave.h:9:17: note: initializing argument 1 of 'void answer(int*, int*)'
9 | void answer(int S[], int D[]);
| ~~~~^~~