cake3.cpp: In function 'int main()':
cake3.cpp:10:31: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%lld%lld",&v,&c);
~~ ^
cake3.cpp:10:31: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
cake3.cpp:24:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(pq.size() > m-2) pq.pop();
~~~~~~~~~~^~~~~
cake3.cpp:6: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:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&v,&c);
~~~~~^~~~~~~~~~~~~~~~~~