记录详情

Wrong Answer

In function 'Search',
    inlined from 'main' at foo.c:25:4:
foo.c:9:29: warning: array subscript 0 is outside array bounds of 'unsigned char[0]' [-Warray-bounds]
    9 |                 if(x==number[i])
      |                       ~~~~~~^~~
foo.c: In function 'main':
foo.c:20:17: note: object 'number.18' of size 0
   20 |         int n=0,number[n];
      |                 ^~~~~~
foo.c:23:17: warning: array subscript i is outside array bounds of 'int[<U2360>]' [-Warray-bounds]
   23 |                 scanf("%d",&number[i]);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
foo.c:20:17: note: while referencing 'number.18'
   20 |         int n=0,number[n];
      |                 ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 3. 2ms 284.0 KiB
#2 Wrong Answer Read 1, expect 4. 1ms 284.0 KiB
#3 Wrong Answer Read 1, expect -1. 1ms 284.0 KiB
#4 Wrong Answer Read -1, expect 2. 1ms 284.0 KiB
#5 Wrong Answer Read 1, expect 5. 1ms 284.0 KiB

信息

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