记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:8:26: warning: iteration 999 invokes undefined behavior [-Waggressive-loop-optimizations]
    8 |                 number[i]=0;
      |                 ~~~~~~~~~^~
foo.c:7:18: note: within this loop
    7 |         for(i=0;i<=999;i++){
      |                 ~^~~~~
foo.c:16:34: warning: iteration 999 invokes undefined behavior [-Waggressive-loop-optimizations]
   16 |                 for(j=1;j<=number[i];j++){
      |                            ~~~~~~^~~
foo.c:15:18: note: within this loop
   15 |         for(i=0;i<=999;i++){
      |                 ~^~~~~
foo.c:8:26: warning: '__builtin_memset' forming offset [3996, 3999] is out of the bounds [0, 3996] of object 'number' with type 'int[999]' [-Warray-bounds]
    8 |                 number[i]=0;
      |                 ~~~~~~~~~^~
foo.c:5:8: note: 'number' declared here
    5 |    int number[999];
      |        ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,2 > -7 -6 -5 -4 -3 -2 -1 1ms 256.0 KiB
#2 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB
#3 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB
#4 Wrong Answer Standard answer longer than user output. 3ms 256.0 KiB
#5 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB

信息

递交者
类型
递交
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 10:21:50
评测时间
2022-08-27 10:21:50
评测机
分数
0
总耗时
10ms
峰值内存
256.0 KiB