Problem | airplane |
---|---|
User | dm |
Submission Time | 2025-03-19 15:56:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
airplane.cpp: In function ‘std::pair<int, int> func(std::map<int, std::vector<int> >, std::map<int, int>, int, int, int, std::vector<int>)’:
airplane.cpp:15:29: error: ‘n’ was not declared in this scope
15 | if (lst[curr][i] == n)
| ^
airplane.cpp:31:13: error: ‘recans’ was not declared in this scope
31 | recans = func(lst, visited, e, res, maxh, a);
| ^~~~~~
airplane.cpp:40:17: error: expected primary-expression before ‘:’ token
40 | else:
| ^
airplane.cpp: In function ‘int main()’:
airplane.cpp:76:10: error: class template argument deduction failed:
76 | pair{int, int} funcans = func(lst, visited, curr, 0, 0, a);
| ^~~
airplane.cpp:76:10: error: no matching function for call to ‘pair()’
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from