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