记录详情

Wrong Answer

In function 'FindMin',
    inlined from 'main' at foo.c:22:4:
foo.c:5:15: warning: array subscript 0 is outside array bounds of 'unsigned char[0]' [-Warray-bounds]
    5 |         int i,min=pa[0];
      |               ^~~
foo.c: In function 'main':
foo.c:16:21: note: object 'number.20' of size 0
   16 |         int n=0;int number[n];
      |                     ^~~~~~
In function 'FindMin',
    inlined from 'main' at foo.c:22:4:
foo.c:8:22: warning: array subscript [1, 2147483646] is outside array bounds of 'unsigned char[0]' [-Warray-bounds]
    8 |                 if(pa[i]<min)
      |                    ~~^~~
foo.c: In function 'main':
foo.c:16:21: note: at offset [4, 8589934584] into object 'number.20' of size 0
   16 |         int n=0;int number[n];
      |                     ^~~~~~
foo.c:20:17: warning: array subscript i is outside array bounds of 'int[<U22d0>]' [-Warray-bounds]
   20 |                 scanf("%d",&number[i]);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
foo.c:16:21: note: while referencing 'number.20'
   16 |         int n=0;int number[n];
      |                     ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Wrong Answer Read 1, expect -1. 1ms 284.0 KiB
#3 Wrong Answer Read 1, expect -8. 1ms 284.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Wrong Answer Read 1, expect -6. 1ms 284.0 KiB

信息

递交者
类型
递交
比赛
2023 程序设计与竞赛(作业4:遗失的日子)
语言
C
递交时间
2023-10-05 19:26:20
评测时间
2023-10-05 19:26:20
评测机
分数
40
总耗时
9ms
峰值内存
284.0 KiB