记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:79:16: warning: iteration 5000 invokes undefined behavior [-Waggressive-loop-optimizations]
   79 |         head[i]=-1;
      |         ~~~~~~~^~~
foo.cc:78:20: note: within this loop
   78 |     for (int i=1; i<=5001; i++) {
      |                   ~^~~~~~
foo.cc:79:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40008, 40015] is out of the bounds [0, 40008] of object 'head' with type 'long long int [5001]' [-Warray-bounds]
   79 |         head[i]=-1;
      |         ~~~~~~~^~~
foo.cc:20:5: note: 'head' declared here
   20 | int head[5001];
      |     ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 412.0 KiB
#2 Accepted 5ms 540.0 KiB
#3 Accepted 5ms 540.0 KiB
#4 Accepted 8ms 668.0 KiB
#5 Accepted 9ms 808.0 KiB

信息

递交者
类型
递交
题目
5 城市中的最短路径
语言
C++
递交时间
2023-07-08 08:09:11
评测时间
2023-07-08 08:09:11
评测机
分数
100
总耗时
35ms
峰值内存
808.0 KiB