Problem cave
User Henries
Submission Time 2025-02-06 10:06:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void exploreCave(int)’:
cave.cpp:14:34: error: cannot convert ‘long long int*’ to ‘int*’
14 | long long pos = tryCombination(tocall);
| ^~~~~~
| |
| long long int*
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:44:3: error: ‘ret’ was not declared in this scope
44 | ret = tryCombination(tocall);
| ^~~
cave.cpp:44:24: error: cannot convert ‘long long int*’ to ‘int*’
44 | ret = tryCombination(tocall);
| ^~~~~~
| |
| long long int*
In file included from cave.cpp:1:
cave.h:8:24: note: initializing argument 1 of ‘int tryCombination(int*)’
8