/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void update(int&, int, int, int, int, int)':
/in/foo.cc:21:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;ls[y]=ls[x];rs[y]=rs[x];
          ~^~
/in/foo.cc: In function 'int update(int, int)':
/in/foo.cc:27:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=x;i<=n;i+=i&-i) update(c[i],c[i],-inf,inf,A[x],-1);A[x]=v;
  ^~~
/in/foo.cc:27:63: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i=x;i<=n;i+=i&-i) update(c[i],c[i],-inf,inf,A[x],-1);A[x]=v;
                                                               ^
/in/foo.cc:29:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int query(int, int)':
/in/foo.cc:40:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int ask(int)':
/in/foo.cc:44:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int ss=0,mid=l+r>>1;
                ~^~
# 状态 耗时 内存占用
#1 Accepted 40ms 29.0 MiB
#2 Accepted 53ms 32.961 MiB
#3 Accepted 15ms 12.25 MiB
#4 Accepted 55ms 29.375 MiB
#5 Accepted 33ms 22.824 MiB
#6 Accepted 56ms 33.039 MiB
#7 Accepted 60ms 32.875 MiB
#8 Accepted 62ms 34.949 MiB
#9 Accepted 59ms 36.25 MiB
#10 Accepted 30ms 18.324 MiB

信息

递交者
类型
递交
题目
P1665 区间查询
语言
C++
递交时间
2017-08-12 13:54:16
评测时间
2017-08-12 13:54:16
评测机
分数
100
总耗时
468ms
峰值内存
36.25 MiB