记录详情

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 17ms 14.176 MiB
#2 Runtime Error 16ms 14.18 MiB
#3 Runtime Error 15ms 14.207 MiB
#4 Runtime Error 13ms 14.176 MiB
#5 Runtime Error 13ms 14.176 MiB
#6 Runtime Error 55ms 36.906 MiB
#7 Runtime Error 53ms 36.836 MiB
#8 Runtime Error 56ms 36.84 MiB
#9 Accepted 126ms 33.051 MiB
#10 Accepted 129ms 33.09 MiB
#11 Accepted 128ms 32.973 MiB
#12 Accepted 128ms 32.98 MiB
#13 Runtime Error 54ms 33.086 MiB
#14 Runtime Error 58ms 33.02 MiB
#15 Runtime Error 54ms 32.988 MiB
#16 Runtime Error 61ms 33.098 MiB
#17 Runtime Error 57ms 31.121 MiB
#18 Runtime Error 56ms 31.145 MiB
#19 Runtime Error 57ms 31.188 MiB
#20 Runtime Error 154ms 65.824 MiB

信息

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