tabletennis.cpp:4:39: warning: bad option '-favx' to pragma 'optimize' [-Wpragmas]
4 | #pragma GCC optimize ("avx, avx2, fma")
| ^
tabletennis.cpp:4:39: warning: bad option '-f avx2' to pragma 'optimize' [-Wpragmas]
tabletennis.cpp:4:39: warning: bad option '-f fma' to pragma 'optimize' [-Wpragmas]
tabletennis.cpp:18:10: warning: bad option '-favx' to attribute 'optimize' [-Wattributes]
18 | int main()
| ^
tabletennis.cpp:18:10: warning: bad option '-f avx2' to attribute 'optimize' [-Wattributes]
tabletennis.cpp:18:10: warning: bad option '-f fma' to attribute 'optimize' [-Wattributes]
tabletennis.cpp: In function 'int main()':
tabletennis.cpp:33:57: warning: bad option '-favx' to attribute 'optimize' [-Wattributes]
33 | sort(V.begin(), V.end(), [&](const pii &p, const pii &q)
| ^
tabletennis.cpp:33:57: warning: bad option '-f avx2' to attribute 'optimize' [-Wattributes]
tabletennis.cpp:33:57: warning: bad option '-f fma' to attribute 'optimize' [-Wattributes]
tabletennis.cpp:38:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=0; i<V.size();)
| ~^~~~~~~~~
tabletennis.cpp:41:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(j=i; j<V.size() && V[i].first+V[i].second==V[j].first+V[j].second; j++);
| ~^~~~~~~~~
tabletennis.cpp:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
20 | scanf("%d%d", &N, &K);
| ~~~~~^~~~~~~~~~~~~~~~
tabletennis.cpp:21:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | for(int i=1; i<=N+K; i++) scanf("%d", &A[i]);
| ~~~~~^~~~~~~~~~~~~