/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:44:42: warning: iteration 501 invokes undefined behavior [-Waggressive-loop-optimizations]
   44 |                         passlength[i][j] = -1;
      |                         ~~~~~~~~~~~~~~~~~^~~~
foo.cc:42:32: note: within this loop
   42 |                 for(int j = 0;j<505;j++)
      |                               ~^~~~
foo.cc:44:42: warning: iteration 501 invokes undefined behavior [-Waggressive-loop-optimizations]
   44 |                         passlength[i][j] = -1;
      |                         ~~~~~~~~~~~~~~~~~^~~~
foo.cc:40:22: note: within this loop
   40 |         for(int i=0;i<505;i++)
      |                     ~^~~~
foo.cc:66:25: warning: 'maxpath' may be used uninitialized in this function [-Wmaybe-uninitialized]
   66 |         cout<<maxpath + 1;
      |                         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 127052729, expect 15. 77ms 2.117 MiB
#2 Wrong Answer Read 11, expect 13. 32ms 1.492 MiB
#3 Wrong Answer Read 12, expect 13. 49ms 1.992 MiB
#4 Accepted 14ms 1.5 MiB
#5 Wrong Answer Read 14, expect 13. 78ms 2.242 MiB
#6 Wrong Answer Read 1392277673, expect 12. 15ms 1.625 MiB
#7 Accepted 9ms 1.375 MiB
#8 Accepted 49ms 1.992 MiB
#9 Wrong Answer Read 1452036105, expect 402. 37ms 1.625 MiB
#10 Wrong Answer Read 466365641, expect 1. 95ms 2.117 MiB

信息

递交者
类型
递交
题目
P1011 清帝之惑之顺治
语言
C++
递交时间
2022-09-17 16:35:18
评测时间
2022-09-17 16:35:18
评测机
分数
30
总耗时
461ms
峰值内存
2.242 MiB