/ Vijos /

记录详情

Runtime Error

/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:59:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
/in/foo.cc:61:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else Update(rson,ps,v);pushup(id);
  ^~~~
/in/foo.cc:61:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
  else Update(rson,ps,v);pushup(id);
                         ^~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 14ms 8.25 MiB
#2 Runtime Error 8ms 8.594 MiB
#3 Runtime Error 13ms 9.25 MiB
#4 Runtime Error 13ms 10.203 MiB
#5 Runtime Error 20ms 10.25 MiB
#6 Runtime Error 69ms 24.25 MiB
#7 Runtime Error 103ms 24.25 MiB
#8 Runtime Error 140ms 24.332 MiB
#9 Runtime Error 70ms 24.328 MiB
#10 Runtime Error 54ms 24.352 MiB

信息

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