Problem cave
User PlayVoltz
Submission Time 2024-07-18 14:42:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void exploreCave(int)’:
cave.cpp:11:20: error: cannot convert ‘std::vector<int>’ to ‘int*’
11 | c=tryCombination(type);
| ^~~~
| |
| std::vector<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:14:21: error: cannot convert ‘std::vector<int>’ to ‘int*’
14 | c=tryCombination(type);
| ^~~~
| |
| std::vector<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:22:21: error: cannot convert ‘std::vector<int>’ to ‘int*’
22 | c=tryCo