xanadu.cpp: In function 'void toggle(int)':
xanadu.cpp:10:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int i = 0; i < graph[k].size(); i++) on[graph[k][i]] = !on[graph[k][i]];
| ~~^~~~~~~~~~~~~~~~~
xanadu.cpp: In function 'void dfs(int, bool, int)':
xanadu.cpp:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for (int i = 0; i < graph[x].size(); i++) if (graph[x][i] != from) dfs(graph[x][i], !y, x);
| ~~^~~~~~~~~~~~~~~~~
xanadu.cpp: In function 'int main()':
xanadu.cpp:40:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (int j = 0; j < v1.size(); j++) {
| ~~^~~~~~~~~~~
xanadu.cpp:46:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | for (int j = 0; j < v2.size(); j++) {
| ~~^~~~~~~~~~~
xanadu.cpp:53:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | for (int j = 0; j < v1.size(); j++) {
| ~~^~~~~~~~~~~