0_0_38007604_12480.cpp: In function 'void pdfs(int, int, const G&)':
0_0_38007604_12480.cpp:414:15: error: expected unqualified-id before '[' token
auto &[v, cost] = g.e[i];
^
0_0_38007604_12480.cpp:414:15: error: expected initializer before '[' token
0_0_38007604_12480.cpp:415:13: error: 'v' was not declared in this scope
if (v == fno) continue;
^
0_0_38007604_12480.cpp:417:15: error: 'v' was not declared in this scope
fa[0][v] = u;
^
0_0_38007604_12480.cpp: In function 'void dfs(int, int, const G&)':
0_0_38007604_12480.cpp:441:15: error: expected unqualified-id before '[' token
auto &[v, cost] = ng.e[i];
^
0_0_38007604_12480.cpp:441:15: error: expected initializer before '[' token
0_0_38007604_12480.cpp:442:13: error: 'v' was not declared in this scope
if (v == fno) continue;
^
0_0_38007604_12480.cpp:444:12: error: 'v' was not declared in this scope
tp[v] = jmp(v, lca.dep[v] - lca.dep[u] - 1);
^
0_0_38007604_12480.cpp: In function 'void solve()':
0_0_38007604_12480.cpp:496:14: error: expected unqualified-id before '[' token
auto [vtes, rt] = vt.build(b[i], lca);
^
0_0_38007604_12480.cpp:500:19: error: expected unqualified-id before '[' token
for (auto [u, v] : vtes) ng.add(u, v);
^
0_0_38007604_12480.cpp:500:19: error: expected ';' before '[' token
0_0_38007604_12480.cpp:500:20: error: 'u' was not declared in this scope
for (auto [u, v] : vtes) ng.add(u, v);
^
0_0_38007604_12480.cpp:500:23: error: 'v' was not declared in this scope
for (auto [u, v] : vtes) ng.add(u, v);
^
0_0_38007604_12480.cpp: In lambda function:
0_0_38007604_12480.cpp:500:26: error: expected '{' before ':' token
for (auto [u, v] : vtes) ng.add(u, v);
^
0_0_38007604_12480.cpp: In function 'void solve()':
0_0_38007604_12480.cpp:500:26: error: expected ';' before ':' token
0_0_38007604_12480.cpp:500:26: error: expected primary-expression before ':' token
0_0_38007604_12480.cpp:500:26: error: expected ')' before ':' token
0_0_38007604_12480.cpp:500:26: error: expected primary-expression before ':' token
0_0_38007604_12480.cpp:502:12: error: 'rt' was not declared in this scope
tp[rt] = rt, pa[rt] = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_38007604_12480.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::array<int, 3ull>*, std::vector<std::array<int, 3ull> > >; _Iterator2 = __gnu_cxx::__normal_iterator<std::array<int, 3ull>*, std::vector<std::array<int, 3ull> > >; _Compare = ReconstructTree<G, Dsu>::work(int, std::vector<std::array<int, 3ull> >) [with G = Graph<200020, 200020>; Dsu = Dsu<200020>]::<lambda(auto:1&, auto:2&)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::array<int, 3ull>*, std::vector<std::array<int, 3ull> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<ReconstructTree<G, Dsu>::work(int, std::vector<std::array<int, 3ull> >) [with G = Graph<200020, 200020>; Dsu = Dsu<200020>]::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::array<int, 3ull>*, std::vector<std::array<int, 3ull> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<ReconstructTree<G, Dsu>::work(int, std::vector<std::array<int, 3ull> >) [with G = Graph<200020, 200020>; Dsu = Dsu<200020>]::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::array<int, 3ull>*, std::vector<std::array<int, 3ull> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<ReconstructTree<G, Dsu>::work(int, std::vector<std::array<int, 3ull> >) [with G = Graph<200020, 200020>; Dsu = Dsu<200020>]::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::array<int, 3ull>*, std::vector<std::array<int, 3ull> > >; _Compare = ReconstructTree<G, Dsu>::work(int, std::vector<std::array<int, 3ull> >) [with G = Graph<200020, 200020>; Dsu = Dsu<200020>]::<lambda(auto:1&, auto:2&)>]'
0_0_38007604_12480.cpp:243:10: required from 'G ReconstructTree<G, Dsu>::work(int, std::vector<std::array<int, 3ull> >) [with G = Graph<200020, 200020>; Dsu = Dsu<200020>]'
0_0_38007604_12480.cpp:464:54: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: error: invalid use of 'auto'
{ return bool(_M_comp(*__it1, *__it2)); }
^
|