net.cpp: In function 'int main()':
net.cpp:50: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:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<=(v.size()-1)/2; i++){
~^~~~~~~~~~~~~~~~
net.cpp:52:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i==v.size()-1-i){
~^~~~~~~~~~~~~~
net.cpp:36:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
net.cpp:38:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int a, b; scanf("%d%d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~