cave.cpp: In function 'void exploreCave(int)':
cave.cpp:18:27: error: cannot convert 'bool*' to 'int*'
18 | ak=tryCombination(result);
| ^~~~~~
| |
| bool*
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:27:31: error: cannot convert 'bool*' to 'int*'
27 | ak=tryCombination(result);
| ^~~~~~
| |
| bool*
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:37:12: error: cannot convert 'bool*' to 'int*'
37 | answer(result,match);
| ^~~~~~
| |
| bool*
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[]);
| ~~~~^~~