/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int read()':
/in/foo.cc:9:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(c>='0'&&c<='9')_*=10,_+=c&15,c=getchar();return f?-_:_;
  ^~~~~
/in/foo.cc:9:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while(c>='0'&&c<='9')_*=10,_+=c&15,c=getchar();return f?-_:_;
                                                 ^~~~~~
/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:37:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;build(lson);build(rson);pushup(id);
          ~^~
/in/foo.cc: In function 'Sgt Query(int, int, int, int, int)':
/in/foo.cc:42:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
/in/foo.cc: In function 'void Update(int, int, int, int, int)':
/in/foo.cc:58:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
/in/foo.cc:60:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else Update(rson,v,ps);pushup(id);
  ^~~~
/in/foo.cc:60:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
  else Update(rson,v,ps);pushup(id);
                         ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:72:10: warning: unused variable 'l' [-Wunused-variable]
  for(int l;m--;)
          ^
# 状态 耗时 内存占用
#1 Accepted 3ms 352.0 KiB
#2 Accepted 11ms 608.0 KiB
#3 Accepted 32ms 1.375 MiB
#4 Accepted 23ms 2.25 MiB
#5 Accepted 92ms 2.352 MiB
#6 Accepted 147ms 16.309 MiB
#7 Accepted 210ms 16.297 MiB
#8 Accepted 205ms 16.215 MiB
#9 Accepted 238ms 16.324 MiB
#10 Accepted 201ms 16.289 MiB

信息

递交者
类型
递交
题目
P1083 小白逛公园
语言
C++
递交时间
2018-08-23 10:35:25
评测时间
2018-08-23 10:35:25
评测机
分数
100
总耗时
1166ms
峰值内存
16.324 MiB