Problem cave
User tomo31415
Submission Time 2026-03-07 16:02:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void exploreCave(long long int)’:
cave.cpp:14:37: error: cannot convert ‘long long int*’ to ‘int*’
14 | 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:16:20: error: cannot convert ‘long long int*’ to ‘int*’
16 | 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[]);
| ~~~~^~~