supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:31:9: error: 'in' was not declared in this scope; did you mean 'yn'?
31 | in n = sz(p);
| ^~
| yn
supertrees.cpp:33:17: error: 'n' was not declared in this scope
33 | dsu dsu(n);
| ^
supertrees.cpp:47:25: error: request for member 'push_back' in 'comp.std::vector<int>::operator[](((std::vector<int>::size_type)p))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
47 | comp[p].push_back(i);
| ^~~~~~~~~
supertrees.cpp:52:36: error: 'begin' was not declared in this scope
52 | for (int x : comp[i]) {
| ^
supertrees.cpp:52:36: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:166,
from supertrees.cpp:1:
/usr/include/c++/13/valarray:1238:5: note: 'std::begin'
1238 | begin(const valarray<_Tp>& __va) noexcept
| ^~~~~
In file included from /usr/include/c++/13/filesystem:50,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:200:
/usr/include/c++/13/bits/fs_dir.h:607:3: note: 'std::filesystem::__cxx11::begin'
607 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
supertrees.cpp:52:36: error: 'end' was not declared in this scope
52 | for (int x : comp[i]) {
| ^
supertrees.cpp:52:36: note: suggested alternatives:
/usr/include/c++/13/valarray:1265:5: note: 'std::end'
1265 | end(const valarray<_Tp>& __va) noexcept
| ^~~
/usr/include/c++/13/bits/fs_dir.h:612:3: note: 'std::filesystem::__cxx11::end'
612 | end(recursive_directory_iterator) noexcept
| ^~~