islands.cpp: In function 'std::variant<bool, std::vector<int, std::allocator<int> > > find_journey(int, int, std::vector<int>, std::vector<int>)':
islands.cpp:41:11: error: 'dsu::dsu(int)' is private within this context
41 | dsu ds(n);
| ^
islands.cpp:12:3: note: declared private here
12 | dsu(int _n) : n(_n) {
| ^~~
islands.cpp:44:18: error: 'bool dsu::unite(int, int)' is private within this context
44 | if (!ds.unite(u[i], v[i])) {
| ~~~~~~~~^~~~~~~~~~~~
islands.cpp:24:8: note: declared private here
24 | bool unite(int x, int y) {
| ^~~~~