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:34:32: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::set<std::pair<int, int> > >, std::set<std::pair<int, int> > >::value_type' {aka 'std::set<std::pair<int, int> >'} and 'int')
34 | auto [nxt1,id1] = edges[root][0];
| ^
islands.cpp:35:32: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::set<std::pair<int, int> > >, std::set<std::pair<int, int> > >::value_type' {aka 'std::set<std::pair<int, int> >'} and 'int')
35 | auto [nxt2,id2] = edges[root][1];
| ^
islands.cpp:36:15: error: redeclaration of 'std::vector<int> ans'
36 | vector<int> ans{id1,co(id1),id2,co(id2),
| ^~~
islands.cpp:17:15: note: 'std::vector<int> ans' previously declared here
17 | vector<int> ans;
| ^~~