keys.cpp: In constructor 'dsu::dsu(int)':
keys.cpp:8:19: error: expected ')' before 'par'
8 | iota(par.begin() par.end(), 0);
| ~ ^~~~
| )
keys.cpp:8:32: error: no matching function for call to 'iota(std::vector<int>::iterator, int)'
8 | iota(par.begin() par.end(), 0);
| ^
In file included from /usr/include/c++/10/numeric:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:84,
from keys.cpp:1:
/usr/include/c++/10/bits/stl_numeric.h:88:5: note: candidate: 'template<class _ForwardIterator, class _Tp> void std::iota(_ForwardIterator, _ForwardIterator, _Tp)'
88 | iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value)
| ^~~~
/usr/include/c++/10/bits/stl_numeric.h:88:5: note: template argument deduction/substitution failed:
keys.cpp:8:32: note: deduced conflicting types for parameter '_ForwardIterator' ('__gnu_cxx::__normal_iterator<int*, std::vector<int> >' and 'int')
8 | iota(par.begin() par.end(), 0);
| ^
keys.cpp: In function 'std::vector<int> find_reachable(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
keys.cpp:20:3: error: 'ajd' was not declared in this scope; did you mean 'adj'?
20 | ajd[V[i]].emplace_back(U[i], C[i]);
| ^~~
| adj
keys.cpp: In lambda function:
keys.cpp:39:8: error: 'struct dsu' has no member named 'p'
39 | d.p[S] = d.leader(u);
| ^
keys.cpp:48:23: error: 'e' was not declared in this scope
48 | for (auto [v, c]: e[u])
| ^