/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'void DFS(int, int, int)':
foo.cc:23:39: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
   23 |         int tmp_x = x + next_step[i][0];
      |                         ~~~~~~~~~~~~~~^
foo.cc:15:18: note: within this loop
   15 |     for(int i=0;i<5;i++)
      |                 ~^~
foo.cc: In function 'int main()':
foo.cc:59:8: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
   59 |     DFS(0,x,y);
      |     ~~~^~~~~~~
foo.cc:59:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 448, expect 494. 7ms 512.0 KiB
#2 Wrong Answer Read 56, expect 84. 3ms 384.0 KiB
#3 Accepted 51ms 1.367 MiB
#4 Wrong Answer Read 1016, expect 1020. 4ms 640.0 KiB
#5 Wrong Answer Read 56, expect 84. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1107 环游大同80天
语言
C++
递交时间
2021-12-24 22:53:50
评测时间
2021-12-24 22:53:50
评测机
分数
20
总耗时
68ms
峰值内存
1.367 MiB