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

Compile Error

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