foo.cc: In function 'void update(int, int, int, int, int, int)':
foo.cc:33:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1;
~~^~~
foo.cc: In function 'int main()':
foo.cc:59:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < events.size(); i++) {
~~^~~~~~~~~~~~~~~
foo.cc:40:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d%d", &n, &f, &a, &b, &k);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务