记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:17:3: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
   printf("%d ",a[i]);
   ^~~~~~~~~~~~~~~~~~
/in/foo.c:16:2: note: within this loop
  for(i=0;i<3;i++)
  ^~~
/in/foo.c:9:13: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations]
    if(a[k]>a[k+1])
            ~^~~~~
/in/foo.c:8:3: note: within this loop
   for(k=0;k<2;k++)
   ^~~
/in/foo.c:9:13: warning: array subscript is above array bounds [-Warray-bounds]
    if(a[k]>a[k+1])
            ~^~~~~
/in/foo.c:13:6: warning: array subscript is above array bounds [-Warray-bounds]
     a[k+1]=tmp;
     ~^~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 208.0 KiB
#2 Accepted 0ms 216.0 KiB

信息

递交者
类型
递交
题目
结构化的程序格式,是编程世界的基石。
比赛
入门测试
语言
C
递交时间
2019-01-16 15:11:17
评测时间
2019-01-16 15:11:17
评测机
分数
100
总耗时
2ms
峰值内存
216.0 KiB