islands.cpp: In function 'void DFS(int, int)':
islands.cpp:15:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for (int i = 0; i < adj[index].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~
islands.cpp:23:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for (int i = 0; i < adj[index].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~
islands.cpp:25:40: warning: 's_out' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | if (adj[index][i].second == back || adj[index][i].second == s_out) continue;
islands.cpp:30:79: warning: 's_in' may be used uninitialized in this function [-Wmaybe-uninitialized]
30 | res.insert(res.end(), {s_out, s_in, e_out, e_in, s_in, s_out, e_in, e_out});
| ^
islands.cpp:30:79: warning: 'e_in' may be used uninitialized in this function [-Wmaybe-uninitialized]
islands.cpp:30:79: warning: 'e_out' may be used uninitialized in this function [-Wmaybe-uninitialized]