cake3.cpp: In function 'int main()':
cake3.cpp:19:19: warning: comparison of integer expressions of different signedness: 'std::multiset<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
19 | if(s.size() > m){
| ~~~~~~~~~^~~
cake3.cpp:23:19: warning: comparison of integer expressions of different signedness: 'std::multiset<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
23 | if(s.size() == m) ans = max(ans, val - 2 * (a[j].ff - a[i].ff));
| ~~~~~~~~~^~~~
cake3.cpp:9:21: warning: 'n' is used uninitialized in this function [-Wuninitialized]
9 | pair<int, int> a[n];
| ^
cake3.cpp:19:19: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
19 | if(s.size() > m){
| ~~~~~~~~~^~~