/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void add_sum(int, int)':
/in/foo.cc:28:7: warning: statement has no effect [-Wunused-value]
  for(x;x<=n;x+=lowbit(x)) t[x]+=y;
       ^
/in/foo.cc: In function 'int query(int)':
/in/foo.cc:33:7: warning: statement has no effect [-Wunused-value]
  for(x;x>=1;x-=lowbit(x)) all+=t[x];
       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:48:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(l>r) swap(l,r);if(k>w) swap(k,w);
   ^~
/in/foo.cc:48:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(l>r) swap(l,r);if(k>w) swap(k,w);
                     ^~
# 状态 耗时 内存占用
#1 Accepted 9ms 2.352 MiB
#2 Accepted 12ms 4.359 MiB
#3 Accepted 12ms 4.5 MiB
#4 Accepted 139ms 7.453 MiB
#5 Accepted 203ms 7.387 MiB
#6 Accepted 852ms 24.102 MiB
#7 Accepted 950ms 26.184 MiB
#8 Accepted 1153ms 31.574 MiB
#9 Accepted 1399ms 33.77 MiB
#10 Accepted 1390ms 36.227 MiB

信息

递交者
类型
递交
题目
P1923 漫长的等待
语言
C++
递交时间
2017-12-16 20:28:26
评测时间
2017-12-16 20:28:26
评测机
分数
100
总耗时
6122ms
峰值内存
36.227 MiB