net.cpp: In function 'int main()':
net.cpp:43:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", (V.size()+1)/2);
~~~~~~~~~~~~~~^
net.cpp:44:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<V.size()/2; i++) printf("%d %d\n", V[i], V[i+V.size()/2]);
~^~~~~~~~~~~
net.cpp:28:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
net.cpp:30:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
net.cpp:34:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &u, &v);
~~~~~^~~~~~~~~~~~~~~~