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