Problem cave
User tomo31415
Submission Time 2026-03-07 15:57:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void exploreCave(long long int)’:
cave.cpp:13:37: error: cannot convert ‘long long int*’ to ‘int*’
13 | int closed = tryCombination(s);
| ^
| |
| 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:15:20: error: cannot convert ‘long long int*’ to ‘int*’
15 | answer(s,d);
| ^
| |
| long long int*
In file included from cave.cpp:1:
cave.h:9:17: note: initializing argument 1 of ‘void answer(int*, int*)’
9 | void answer(int S[], int D[]);
| ~~~~^~~