Problem | pancake |
---|---|
User | bribritt |
Submission Time | 2023-08-22 13:58:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pancake.cpp: In function ‘void bfs(long long int)’:
pancake.cpp:34:15: error: cannot convert ‘std::vector<long long int>’ to ‘int’
34 | dist[toNo(start)] = 0;
| ^~~~~
| |
| std::vector<long long int>
pancake.cpp:14:14: note: initializing argument 1 of ‘int toNo(int, std::vector<int>)’
14 | int toNo(int n, vector<int> v) {
| ~~~~^
pancake.cpp:35:18: error: cannot convert ‘std::vector<long long int>’ to ‘int’
35 | visited[toNo(start)] = true;
| ^~~~~
| |
| std::vector<long long int>
pancake.cpp:14:14: note: initializing argument 1 of ‘int toNo(int, std::vector<int>)’
14 | int toNo(int n, vector<int> v) {
| ~~~~^
pancake.cpp:42:30: error: cannot convert ‘std::vector<long long int>’ to ‘int’
42 |