Problem airplane
User dm
Submission Time 2025-03-19 15:57:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

airplane.cpp:8:116: error: ‘n’ has not been declared
8 | pair<int, int> func(map<int, vector<int>> lst, map<int, int> visited, int curr, int res1, int maxh, vector<int> a, n)
| ^
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>, 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, n);
| ^~~~~~
airplane.cpp:31:58: error: ‘n’ was not declared in this scope
31 | recans = func(lst, visited, e, res, maxh, a, n);
|