记录详情

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:60: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:62: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:50:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Runtime Error 15ms 14.195 MiB
#2 Runtime Error 15ms 14.176 MiB
#3 Runtime Error 17ms 14.223 MiB
#4 Runtime Error 14ms 14.195 MiB
#5 Runtime Error 16ms 14.172 MiB
#6 Runtime Error 53ms 36.512 MiB
#7 Runtime Error 54ms 36.457 MiB
#8 Runtime Error 54ms 36.578 MiB
#9 Accepted 121ms 32.719 MiB
#10 Accepted 121ms 32.734 MiB
#11 Accepted 120ms 32.711 MiB
#12 Accepted 119ms 32.707 MiB
#13 Runtime Error 54ms 32.707 MiB
#14 Runtime Error 57ms 32.629 MiB
#15 Runtime Error 58ms 32.723 MiB
#16 Runtime Error 58ms 32.727 MiB
#17 Runtime Error 54ms 30.824 MiB
#18 Runtime Error 50ms 30.816 MiB
#19 Runtime Error 53ms 30.762 MiB
#20 Runtime Error 145ms 64.664 MiB

信息

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