tabletennis.cpp: In function 'void fun(int)':
tabletennis.cpp:22:16: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
22 | if(v.size()!=n) return;
| ~~~~~~~~^~~
tabletennis.cpp:23:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
tabletennis.cpp: In function 'int main()':
tabletennis.cpp:33:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d%d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~
tabletennis.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d",a+i);
| ~~~~~^~~~~~~~~~