| Problem | cave |
|---|---|
| User | Henries |
| Submission Time | 2025-02-06 10:02:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cave.cpp: In function ‘void exploreCave(int)’:
cave.cpp:8:30: error: ‘n’ was not declared in this scope
8 | vector<long long> tocall(n,0);//assume all switches are up
| ^
cave.cpp:10:34: error: cannot convert ‘std::vector<long long int>’ to ‘int*’
10 | 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:39:3: error: ‘ret’ was not declared in this scope
39 | ret = tryCombination(tocall);
| ^~~
cave.cpp:39:24: error: cannot convert ‘std::vector<long long int>’ to ‘int*’
39 | ret = tryCombination(tocall);
|