cake3.cpp: In function 'int main()':
cake3.cpp:28:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Q.size() > m) sum -= Q.top(), Q.pop();
~~~~~~~~~^~~
cake3.cpp:29:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Q.size() == m) ans = max(ans, sum - 2ll * (vec[j].y - vec[i].y));
~~~~~~~~~^~~~
cake3.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~
cake3.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &v, &c);
~~~~~^~~~~~~~~~~~~~~~~