/ SUOI /

记录详情

Accepted

/in/foo.cc: In function 'void pushdown(int, int, int)':
/in/foo.cc:44:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(!tree[p].add) return;int mid=l+r>>1;
  ^~
/in/foo.cc:44:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(!tree[p].add) return;int mid=l+r>>1;
                          ^~~
/in/foo.cc:44:35: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  if(!tree[p].add) return;int mid=l+r>>1;
                                  ~^~
/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:49:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;build(p<<1,l,mid);build(p<<1|1,mid+1,r);pushup(p);
          ~^~
/in/foo.cc: In function 'void add(int, int, int, int, int, int)':
/in/foo.cc:53:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;pushdown(p,l,r);
          ~^~
/in/foo.cc:55:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(y>mid) add(p<<1|1,mid+1,r,x,y,val);pushup(p);
  ^~
/in/foo.cc:55:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(y>mid) add(p<<1|1,mid+1,r,x,y,val);pushup(p);
                                        ^~~~~~
/in/foo.cc: In function 'int ask(int, int, int, int, int)':
/in/foo.cc:59:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;pushdown(p,l,r);int res=0;
          ~^~
/in/foo.cc: In function 'int askmx(int, int, int, int, int)':
/in/foo.cc:66:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;pushdown(p,l,r);int res=-inf;
          ~^~
# 状态 耗时 内存占用
#1 Accepted 20ms 22.344 MiB
#2 Accepted 16ms 22.344 MiB
#3 Accepted 22ms 22.25 MiB
#4 Accepted 18ms 22.375 MiB
#5 Accepted 31ms 22.375 MiB
#6 Accepted 27ms 22.391 MiB
#7 Accepted 19ms 24.375 MiB
#8 Accepted 24ms 22.324 MiB
#9 Accepted 13ms 22.469 MiB
#10 Accepted 15ms 22.375 MiB
#11 Accepted 15ms 22.375 MiB
#12 Accepted 14ms 22.469 MiB
#13 Accepted 205ms 33.176 MiB
#14 Accepted 170ms 27.789 MiB
#15 Accepted 191ms 32.426 MiB
#16 Accepted 196ms 32.375 MiB
#17 Accepted 2486ms 79.43 MiB
#18 Accepted 2479ms 79.5 MiB
#19 Accepted 2396ms 79.43 MiB
#20 Accepted 2622ms 81.426 MiB

信息

递交者
类型
递交
题目
#23 ZHX知识树
语言
C++
递交时间
2017-12-27 08:49:32
评测时间
2018-01-02 13:37:01
评测机
分数
100
总耗时
10990ms
峰值内存
81.426 MiB