net.cpp: In function 'int main()':
net.cpp:21:42: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::queue<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n",q.size()/2+(q.size())%2);
^
net.cpp:8:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
net.cpp:12:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^