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:24:5: error: 'G' was not declared in this scope
24 | G[U[i]].pb({V[i] , i});
| ^
islands.cpp:28:12: error: 'G' was not declared in this scope
28 | while(sz(G[v]) <= 2 || sz(vec)){
| ^
islands.cpp:14:20: note: in definition of macro 'sz'
14 | #define sz(a) (int)a.size()
| ^
islands.cpp:32:22: error: 'ok' was not declared in this scope
32 | if(mark[v] == 1){ok = 1;break;}
| ^~
islands.cpp:35:10: error: could not convert '1' from 'int' to 'std::variant<bool, std::vector<int, std::allocator<int> > >'
35 | return 1 ;
| ^
| |
| int