net.cpp: In function 'int main()':
net.cpp:20:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((int)vec.size() % 2 == 0) for (int i = 0; i < vec.size(); i += 2) printf("%d %d\n", vec[i], vec[i + 1]);
~~^~~~~~~~~~~~
net.cpp:22:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vec.size() - 1; i += 2) printf("%d %d\n", vec[i], vec[i + 1]);
~~^~~~~~~~~~~~~~~~
net.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
net.cpp:13:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int u, v; scanf("%d %d", &u, &v);
~~~~~^~~~~~~~~~~~~~~~~