cake3.cpp: In function 'int main()':
cake3.cpp:27:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Q.size() == m-2) ans = max(ans, sum + vec[i].x + vec[j].x - 2ll * (vec[j].y - vec[i].y));
~~~~~~~~~^~~~~~
cake3.cpp:29:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Q.size() > m-2) sum -= Q.top(), Q.pop();
~~~~~~~~~^~~~~
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);
~~~~~^~~~~~~~~~~~~~~~~