Problem cave
User anusha777
Submission Time 2022-12-29 22:25:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void solve(long long int)’:
cave.cpp:24:10: error: ‘trycombination’ was not declared in this scope; did you mean ‘tryCombination’?
24 | int p= trycombination(a);
| ^~~~~~~~~~~~~~
| tryCombination
cave.cpp:35:9: error: cannot convert ‘std::vector<long long int>’ to ‘int*’
35 | answer(a, door);
| ^
| |
| std::vector<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[]);
| ~~~~^~~
cave.cpp: In function ‘void exploreCave(long long int)’:
cave.cpp:42:7: error: ‘n’ was not declared in this scope
42 | vi a(n), door(n);
| ^
cave.cpp:45:10: error: ‘trycombination’ was not declared in this scope; did you mean ‘tryCombination’?
45 | int p= trycombination(a);
| ^~~~~