race.cpp:80:29: error: 'h' has not been declared
80 | int best_path(int n, int k, h[][2], l[]) {
| ^
race.cpp:80:37: error: 'l' has not been declared
80 | int best_path(int n, int k, h[][2], l[]) {
| ^
race.cpp: In function 'long long int best_path(long long int, long long int, int (*)[2], int*)':
race.cpp:85:17: error: 'h' was not declared in this scope
85 | int u = h[i][0] + 1, v = h[i][1] + 1, w = l[i];
| ^
race.cpp:86:21: error: 'v' was not declared in this scope
86 | edge[u].pb({v, w});
| ^
race.cpp:86:24: error: 'w' was not declared in this scope
86 | edge[u].pb({v, w});
| ^
race.cpp:86:19: error: no matching function for call to 'std::vector<std::pair<long long int, long long int> >::push_back(<brace-enclosed initializer list>)'
86 | edge[u].pb({v, w});
| ~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/13/vector:66,
from /usr/include/c++/13/functional:64,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53,
from race.cpp:5:
/usr/include/c++/13/bits/stl_vector.h:1281:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; value_type = std::pair<long long int, long long int>]'
1281 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/13/bits/stl_vector.h:1281:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<std::pair<long long int, long long int> >::value_type&' {aka 'const std::pair<long long int, long long int>&'}
1281 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_vector.h:1298:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; value_type = std::pair<long long int, long long int>]'
1298 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/13/bits/stl_vector.h:1298:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<long long int, long long int> >::value_type&&' {aka 'std::pair<long long int, long long int>&&'}
1298 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~