cake3.cpp: In function 'int main()':
cake3.cpp:28:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Q.size() == m-2) ans = max(ans, v[i] + v[j] + sum - 2ll * (abs(c[i] - c[j])));
~~~~~~~~~^~~~~~
cake3.cpp:39:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < vec.size(); ++i) {
~~^~~~~~~~~~~~
cake3.cpp:43:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 1; j < vec[i].y.size(); ++j) sum += vec[i].y[j], Q.emplace(vec[i].y[j]);
~~^~~~~~~~~~~~~~~~~
cake3.cpp:44:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(Q.size() > m-1) sum -= Q.top(), Q.pop();
~~~~~~~~~^~~~~
cake3.cpp:45:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Q.size() == m-1) ans = max(ans, sum);
~~~~~~~~~^~~~~~
cake3.cpp:46:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = i+1; j < vec.size(); ++j) {
~~^~~~~~~~~~~~
cake3.cpp:48:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(Q.size() > m-2) sum -= Q.top(), Q.pop();
~~~~~~~~~^~~~~
cake3.cpp:49:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Q.size() == m-2) ans = max(ans, sum + vec[j].y[0] - 2ll * (vec[j].x - vec[i].x));
~~~~~~~~~^~~~~~
cake3.cpp:15: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:17:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", v+i, c+i);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~