cave.cpp: In function 'int f(int, int)':
cave.cpp:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
9 | }
| ^
cave.cpp: In function 'bool jo(int)':
cave.cpp:11:26: error: cannot convert 'bool*' to 'int*'
11 | int x=tryCombination(t);
| ^
| |
| 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: In function 'void exploreCave(int)':
cave.cpp:27:12: error: cannot convert 'bool*' to 'int*'
27 | answer(t, par);
| ^
| |
| 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[]);
| ~~~~^~~