/ Vijos /

记录详情

Accepted

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:60:8: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
   60 |     DFS(0,x,y);
      |     ~~~^~~~~~~
foo.cc:60:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 512.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 55ms 1.367 MiB
#4 Accepted 8ms 640.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

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