记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:28:2: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
  printf("%d ",a[i]);
  ^~~~~~~~~~~~~~~~~~
/in/foo.c:27:2: note: within this loop
  for(i=1;i<=5;i++)
  ^~~
/in/foo.c:10:8: warning: array subscript is above array bounds [-Warray-bounds]
  a[5]=a[5]+a[1];
       ~^~~
/in/foo.c:24:3: warning: array subscript is above array bounds [-Warray-bounds]
  a[5]=a[5]/3;
  ~^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 204.0 KiB
#2 Accepted 1ms 204.0 KiB
#3 Accepted 1ms 248.0 KiB
#4 Accepted 1ms 196.0 KiB
#5 Accepted 1ms 208.0 KiB
#6 Accepted 1ms 248.0 KiB
#7 Accepted 0ms 208.0 KiB
#8 Accepted 1ms 200.0 KiB
#9 Accepted 1ms 208.0 KiB
#10 Accepted 0ms 208.0 KiB

信息

递交者
类型
递交
题目
P1034 糖果游戏
语言
C
递交时间
2023-08-21 12:07:05
评测时间
2023-08-21 12:07:05
评测机
分数
100
总耗时
11ms
峰值内存
248.0 KiB