tabletennis.cpp: In function 'void check(int)':
tabletennis.cpp:31:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
31 | if (ans.size()==n) break;
| ~~~~~~~~~~^~~
tabletennis.cpp:34:17: 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) {
| ~~~~~~~~~~^~~
tabletennis.cpp:36:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | 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:42:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
42 | main() {
| ^