net.cpp: In function 'int mrg(int, int)':
net.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
net.cpp:32:5: note: in expansion of macro 'fox'
fox(l, com[B].size()){
^
net.cpp:34:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (com[A].size()+com[B].size()-l>(c+1)/2){
^
net.cpp: In function 'void dfs(int, int)':
net.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
net.cpp:50:5: note: in expansion of macro 'fox'
fox(l, v[N].size()){
^
net.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
net.cpp:56:5: note: in expansion of macro 'fox'
fox(l, v[N].size()){
^
net.cpp: In function 'int main()':
net.cpp:80:38: warning: format '%i' expects argument of type 'int', but argument 2 has type 'std::vector<std::pair<int, int> >::size_type {aka long unsigned int}' [-Wformat=]
printf("%i\n", ans.size());
^
net.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
net.cpp:81:13: note: in expansion of macro 'fox'
fox(l2, ans.size()){
^
net.cpp:64:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i", &n);
^
net.cpp:66:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i", &a, &b);
^