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",&n);scanf("%d",&m);map<long long,bool>mp;
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
tabletennis.cpp:39:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
39 | scanf("%d",&n);scanf("%d",&m);map<long long,bool>mp;
| ~^ ~~
| | |
| | long long int*
| 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",&n);scanf("%d",&m);map<long long,bool>mp;
| ~~~~~^~~~~~~~~
tabletennis.cpp:39:25: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | scanf("%d",&n);scanf("%d",&m);map<long long,bool>mp;
| ~~~~~^~~~~~~~~