race.cpp: In function 'void dfs(int, int)':
race.cpp:22:13: error: cannot decompose non-array non-class type 'int'
22 | for(auto[i, _] : adj[x])
| ^~~~~~
race.cpp: In function 'int centr(int, int)':
race.cpp:29:13: error: cannot decompose non-array non-class type 'int'
29 | for(auto[i, _] : adj[x])
| ^~~~~~
race.cpp: In function 'void init(int, int)':
race.cpp:37:13: error: cannot decompose non-array non-class type 'int'
37 | for(auto[i, w] : adj[x])
| ^~~~~~
race.cpp: In function 'void query(int, int)':
race.cpp:48:23: warning: NULL used in arithmetic [-Wpointer-arith]
48 | if(mn[k-pref[x]]!=NULL) ans=min(ans, mn[k-pref[x]]+depth[x]);
| ^~~~
race.cpp:49:13: error: cannot decompose non-array non-class type 'int'
49 | for(auto[i, _]:adj[x])
| ^~~~~~
race.cpp: In function 'void update(int, int)':
race.cpp:57:13: error: cannot decompose non-array non-class type 'int'
57 | for(auto[i, _]:adj[x])
| ^~~~~~
race.cpp: In function 'int best_path(int, int, int (*)[2], int*)':
race.cpp:93:18: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)'
93 | adj[x].pb({y, 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:1:
/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 = int; _Alloc = std::allocator<int>; value_type = 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<int>::value_type&' {aka 'const 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 = int; _Alloc = std::allocator<int>; value_type = 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<int>::value_type&&' {aka 'int&&'}
1298 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
race.cpp:94:18: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)'
94 | adj[y].pb({x, w});
| ~~~~~~~~~^~~~~~~~
/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 = int; _Alloc = std::allocator<int>; value_type = 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<int>::value_type&' {aka 'const 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 = int; _Alloc = std::allocator<int>; value_type = 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<int>::value_type&&' {aka 'int&&'}
1298 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~