记录详情

Runtime Error

/in/foo.cc: In function 'void dfs1(int, int)':
/in/foo.cc:14:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < adj[u].size(); ++i) {
                   ~~^~~~~~~~~~~~~~~
/in/foo.cc: In function 'void dfs2(int, int)':
/in/foo.cc:30:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < adj[u].size(); ++i) {
                   ~~^~~~~~~~~~~~~~~
/in/foo.cc: In function 'int get_anc(int, int)':
/in/foo.cc:54:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         return depth[x] - depth[top[x]] - k >= down[top[x]].size() ? 0 : down[top[x]][depth[x] - depth[top[x]] - k];
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:56:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         return k - depth[x] + depth[top[x]] >= up[top[x]].size() ? 0 : up[top[x]][k - depth[x] + depth[top[x]]];
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 17ms 36.754 MiB
#2 Accepted 17ms 39.84 MiB
#3 Accepted 17ms 37.266 MiB
#4 Accepted 17ms 36.992 MiB
#5 Accepted 16ms 36.68 MiB
#6 Runtime Error 60ms 59.137 MiB
#7 Runtime Error 59ms 56.453 MiB
#8 Runtime Error 60ms 58.801 MiB
#9 Accepted 239ms 56.449 MiB
#10 Accepted 227ms 56.586 MiB
#11 Accepted 223ms 56.164 MiB
#12 Accepted 227ms 59.285 MiB
#13 Accepted 377ms 59.133 MiB
#14 Accepted 364ms 59.211 MiB
#15 Accepted 350ms 56.645 MiB
#16 Accepted 338ms 59.051 MiB
#17 Accepted 324ms 53.578 MiB
#18 Accepted 320ms 53.195 MiB
#19 Accepted 329ms 53.32 MiB
#20 Runtime Error 167ms 65.398 MiB

信息

递交者
类型
递交
题目
lxhgww的奇思妙想
语言
C++
递交时间
2019-03-11 18:56:53
评测时间
2019-03-11 18:56:53
评测机
分数
80
总耗时
3757ms
峰值内存
65.398 MiB