In file included from /usr/include/c++/7/cassert:44:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:33,
from cake3.cpp:1:
cake3.cpp: In function 'void balance()':
cake3.cpp:21:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
assert(good.size() == m);
~~~~~~~~~~~~^~~~
cake3.cpp: In function 'void add(int)':
cake3.cpp:25:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (good.size() < m){
~~~~~~~~~~~~^~~
cake3.cpp: In function 'int main()':
cake3.cpp:37: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:39:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a[i].first,&a[i].second);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~