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