tabletennis.cpp: In function 'void check(int)':
tabletennis.cpp:34:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
34 | if (ans.size()==n) break;
| ~~~~~~~~~~^~~
tabletennis.cpp:37:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | if (ans.size()==n) {
| ~~~~~~~~~~^~~
tabletennis.cpp:39:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for (int i=0; i<ans.size(); i++)
| ~^~~~~~~~~~~
tabletennis.cpp:21:7: warning: unused variable 'r' [-Wunused-variable]
21 | int r=n+k;
| ^
tabletennis.cpp: At global scope:
tabletennis.cpp:45:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
45 | main() {
| ^
tabletennis.cpp: In function 'int main()':
tabletennis.cpp:61:10: warning: division by zero [-Wdiv-by-zero]
61 | cout<<1/0<<"\n";
| ~^~