cave.cpp: In function 'void exploreCave(int)':
cave.cpp:18:29: error: invalid conversion from 'int' to 'int*' [-fpermissive]
18 | r = tryCombination( n, R );
| ^
| |
| int
cave.cpp:18:27: error: too many arguments to function 'int tryCombination(int*)'
18 | r = tryCombination( n, R );
| ~~~~~~~~~~~~~~^~~~~~~~
In file included from cave.cpp:1:
cave.h:8:5: note: declared here
8 | int tryCombination(int S[]);
| ^~~~~~~~~~~~~~
cave.cpp:29:32: error: invalid conversion from 'int' to 'int*' [-fpermissive]
29 | r = tryCombination(n, R);
| ^
| |
| int
cave.cpp:29:31: error: too many arguments to function 'int tryCombination(int*)'
29 | r = tryCombination(n, R);
| ~~~~~~~~~~~~~~^~~~~~
In file included from cave.cpp:1:
cave.h:8:5: note: declared here
8 | int tryCombination(int S[]);
| ^~~~~~~~~~~~~~
cave.cpp:44:12: error: invalid conversion from 'int' to 'int*' [-fpermissive]
44 | answer(n, R, D);
| ^
| |
| int
cave.cpp:44:11: error: too many arguments to function 'void answer(int*, int*)'
44 | answer(n, R, D);
| ~~~~~~^~~~~~~~~
In file included from cave.cpp:1:
cave.h:9:6: note: declared here
9 | void answer(int S[], int D[]);
| ^~~~~~