记录详情

Accepted

foo.cc: In function 'void build(int, int, int)':
foo.cc:26:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   26 |     int mid = l + r >> 1;
      |               ~~^~~
foo.cc: In function 'int ask(int, int, int)':
foo.cc:35:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   35 |     int mid = r(l) + l(u) >> 1;
      |                    ^
foo.cc:38:14: warning: self-comparison always evaluates to false [-Wtautological-compare]
   38 |     if ( mid < mid ) res = max(res, ask(u << 1 | 1, l, r));
      |          ~~~ ^ ~~~
foo.cc: In function 'void change(int, int, int)':
foo.cc:46:24: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   46 |         int mid = r(u) + l(u) >> 1;
      |                        ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1120 区间操作1
语言
C++
递交时间
2021-12-09 21:39:24
评测时间
2021-12-09 21:39:24
评测机
分数
100
总耗时
3ms
峰值内存
384.0 KiB