记录详情

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]]];
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:81:7: warning: unused variable 'last_answer' [-Wunused-variable]
   int last_answer = 0;
       ^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 19ms 50.559 MiB
#2 Wrong Answer 20ms 50.879 MiB
#3 Wrong Answer 19ms 49.641 MiB
#4 Wrong Answer 20ms 51.887 MiB
#5 Wrong Answer 20ms 49.234 MiB
#6 Runtime Error 63ms 71.488 MiB
#7 Runtime Error 66ms 67.387 MiB
#8 Runtime Error 70ms 69.574 MiB
#9 Wrong Answer 90ms 68.523 MiB
#10 Wrong Answer 82ms 68.98 MiB
#11 Wrong Answer 83ms 69.051 MiB
#12 Wrong Answer 85ms 69.012 MiB
#13 Wrong Answer 89ms 69.523 MiB
#14 Wrong Answer 88ms 69.805 MiB
#15 Wrong Answer 89ms 69.801 MiB
#16 Wrong Answer 87ms 70.199 MiB
#17 Wrong Answer 82ms 66.742 MiB
#18 Wrong Answer 80ms 67.137 MiB
#19 Wrong Answer 84ms 70.246 MiB
#20 Runtime Error 179ms 82.652 MiB

信息

递交者
类型
递交
题目
lxhgww的奇思妙想
语言
C++
递交时间
2019-03-11 18:52:10
评测时间
2019-03-11 18:52:10
评测机
分数
0
总耗时
1425ms
峰值内存
82.652 MiB