net.cpp: In function 'int main()':
net.cpp:19:51: 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",lf.size()/2 + ( lf.size() % 2 ) );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
net.cpp:20:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < lf.size()/2 ; i++ ) printf("%d %d\n",lf[i],lf[i+(lf.size()/2)]);
~~^~~~~~~~~~~~~
net.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
net.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&a,&b);
~~~~~^~~~~~~~~~~~~~~