记录详情

Runtime Error

/in/foo.cc: In function 'int kth(int, int)':
/in/foo.cc:44:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(dep[u]<k) return 0; if(!k) return u;
  ^~
/in/foo.cc:44:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(dep[u]<k) return 0; if(!k) return u;
                         ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:59:46: warning: operation on 'u' may be undefined [-Wsequence-point]
   while(l<len[i] && u) ++l,anc[u].push_back(u=fa[u][0]);
                                             ~^~~~~~~~~
/in/foo.cc:61:42: warning: operation on 'u' may be undefined [-Wsequence-point]
   while(l<len[i]) ++l,hson[u].push_back(u=son[u]);
                                         ~^~~~~~~
/in/foo.cc: In function 'int kth(int, int)':
/in/foo.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Runtime Error 10ms 14.211 MiB
#2 Runtime Error 11ms 14.176 MiB
#3 Runtime Error 11ms 14.176 MiB
#4 Runtime Error 11ms 14.18 MiB
#5 Runtime Error 11ms 14.207 MiB
#6 Runtime Error 44ms 33.902 MiB
#7 Runtime Error 45ms 33.902 MiB
#8 Runtime Error 44ms 33.902 MiB
#9 Accepted 107ms 30.5 MiB
#10 Accepted 109ms 30.504 MiB
#11 Accepted 109ms 30.547 MiB
#12 Accepted 108ms 30.473 MiB
#13 Runtime Error 45ms 30.461 MiB
#14 Runtime Error 45ms 30.43 MiB
#15 Runtime Error 46ms 30.492 MiB
#16 Runtime Error 45ms 30.469 MiB
#17 Runtime Error 42ms 28.555 MiB
#18 Runtime Error 42ms 28.559 MiB
#19 Runtime Error 42ms 28.578 MiB
#20 Runtime Error 123ms 58.887 MiB

信息

递交者
类型
递交
题目
lxhgww的奇思妙想
语言
C++
递交时间
2019-11-09 15:20:13
评测时间
2019-11-09 15:20:13
评测机
分数
20
总耗时
1060ms
峰值内存
58.887 MiB