tabletennis.cpp: In function 'void print_ans(long long int)':
tabletennis.cpp:33:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for(int i=0;i<ans.size();i++){cout<<ans[i]<<' ';}
| ~^~~~~~~~~~~
tabletennis.cpp: In function 'void solve()':
tabletennis.cpp:39:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
39 | scanf("%d%d",&n,&m);map<long long,bool>mp;
| ~^ ~~
| | |
| int* long long int*
| %lld
tabletennis.cpp:39:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
39 | scanf("%d%d",&n,&m);map<long long,bool>mp;
| ~^ ~~
| | |
| int* long long int*
| %lld
tabletennis.cpp:39:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | scanf("%d%d",&n,&m);map<long long,bool>mp;
| ~~~~~^~~~~~~~~~~~~~