/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'void Out(int)':
/in/foo.cc:21:13: warning: array subscript has type 'char' [-Wchar-subscripts]
  stack[++top]='\n';if(!x)stack[++top]='0';
             ^
/in/foo.cc:21:37: warning: array subscript has type 'char' [-Wchar-subscripts]
  stack[++top]='\n';if(!x)stack[++top]='0';
                                     ^
/in/foo.cc:22:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  while(x)stack[++top]=x%10+'0',x/=10;
                     ^
/in/foo.cc:23:28: warning: array subscript has type 'char' [-Wchar-subscripts]
  while(top)*S++=stack[top--];return ;
                            ^
/in/foo.cc:23:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(top)*S++=stack[top--];return ;
  ^~~~~
/in/foo.cc:23:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while(top)*S++=stack[top--];return ;
                              ^~~~~~
/in/foo.cc: In function 'void Infix(int&, int, int, int, int)':
/in/foo.cc:30:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(!v)v=++ind;tree[v].d+=x;if(L==R)return ;
  ^~
/in/foo.cc:30:16: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(!v)v=++ind;tree[v].d+=x;if(L==R)return ;
                ^~~~
# 状态 耗时 内存占用
#1 Runtime Error 21ms 7.34 MiB
#2 Runtime Error 26ms 7.277 MiB
#3 Accepted 48ms 7.5 MiB
#4 Runtime Error 32ms 7.375 MiB
#5 Runtime Error 50ms 9.25 MiB
#6 Runtime Error 46ms 9.875 MiB
#7 Runtime Error 62ms 7.5 MiB
#8 Runtime Error 48ms 7.027 MiB
#9 Runtime Error 29ms 7.234 MiB
#10 Accepted 32ms 10.746 MiB

信息

递交者
类型
递交
题目
P1665 区间查询
语言
C++
递交时间
2018-03-09 23:27:54
评测时间
2018-03-09 23:27:54
评测机
分数
20
总耗时
397ms
峰值内存
10.746 MiB