net.cpp: In function 'int main()':
net.cpp:25:51: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(i=0;i<ans;i++)printf("%d %d\n",v[i],(i+ans<v.size())?v[i+ans]:v[0]);
| ~~~~~^~~~~~~~~
net.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
net.cpp:19:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | scanf("%d %d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~