/ Vijos /

记录详情

Accepted

foo.cc: In function 'L Q(int&, int, int, int)':
foo.cc:2:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define md (x+y>>1)
             ~^~
foo.cc:10:45: note: in expansion of macro 'md'
 L q1=(x>M)?(P[P[R].l].s):(P[P[R].l].s+min(M,md*1ll)-x+1);
                                             ^~
foo.cc:2:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define md (x+y>>1)
             ~^~
foo.cc:12:30: note: in expansion of macro 'md'
 if(p<=q1)return Q(P[R].l,p,x,md);
                              ^~
foo.cc:2:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define md (x+y>>1)
             ~^~
foo.cc:13:22: note: in expansion of macro 'md'
 return Q(P[R].r,p-q1,md+1,y);
                      ^~
foo.cc: In function 'void C(int&, int, int, int, int)':
foo.cc:16:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if(!R)R=++nd;if(x==y){P[R].s+=v;return;}
 ^~
foo.cc:16:14: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 if(!R)R=++nd;if(x==y){P[R].s+=v;return;}
              ^~
foo.cc:2:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define md (x+y>>1)
             ~^~
foo.cc:17:8: note: in expansion of macro 'md'
 if(nw<=md)C(P[R].l,nw,x,md,v);else C(P[R].r,nw,md+1,y,v);
        ^~
foo.cc:2:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define md (x+y>>1)
             ~^~
foo.cc:17:25: note: in expansion of macro 'md'
 if(nw<=md)C(P[R].l,nw,x,md,v);else C(P[R].r,nw,md+1,y,v);
                         ^~
foo.cc:2:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define md (x+y>>1)
             ~^~
foo.cc:17:48: note: in expansion of macro 'md'
 if(nw<=md)C(P[R].l,nw,x,md,v);else C(P[R].r,nw,md+1,y,v);
                                                ^~
foo.cc: In function 'int main()':
foo.cc:23:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 int X,Y;scanf("%d%d",&X,&Y);
         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 8ms 7.465 MiB
#2 Accepted 8ms 7.414 MiB
#3 Accepted 8ms 7.414 MiB
#4 Accepted 8ms 7.441 MiB
#5 Accepted 8ms 7.391 MiB
#6 Accepted 8ms 7.402 MiB
#7 Accepted 9ms 7.902 MiB
#8 Accepted 9ms 7.941 MiB
#9 Accepted 10ms 7.895 MiB
#10 Accepted 10ms 7.938 MiB
#11 Accepted 160ms 17.621 MiB
#12 Accepted 160ms 17.562 MiB
#13 Accepted 566ms 38.379 MiB
#14 Accepted 528ms 38.328 MiB
#15 Accepted 577ms 46.367 MiB
#16 Accepted 607ms 46.762 MiB
#17 Accepted 264ms 37.516 MiB
#18 Accepted 251ms 36.023 MiB
#19 Accepted 1143ms 93.535 MiB
#20 Accepted 1092ms 96.691 MiB

信息

递交者
类型
递交
题目
P2033 列队
语言
C++
递交时间
2021-11-06 21:16:05
评测时间
2021-11-06 21:16:05
评测机
分数
100
总耗时
5444ms
峰值内存
96.691 MiB