记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:17:41: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
   17 |                                 scanf("%d",&v[ii]);
      |                                        ~^  ~~~~~~
      |                                         |  |
      |                                         |  long int *
      |                                         int *
      |                                        %ld
foo.c:8:5: warning: iteration 2000 invokes undefined behavior [-Waggressive-loop-optimizations]
    8 | x[i]=0;
      | ~~~~^~
foo.c:7:14: note: within this loop
    7 | for(int i=1;i<=2001;i++)
      |             ~^~~~~~
foo.c:8:5: warning: '__builtin_memset' forming offset [8004, 8007] is out of the bounds [0, 8004] of object 'x' with type 'int[2001]' [-Warray-bounds]
    8 | x[i]=0;
      | ~~~~^~
foo.c:6:5: note: 'x' declared here
    6 | int x[2001];
      |     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Wrong Answer Read 2057831384, expect 27827635160. 2ms 284.0 KiB
#3 Wrong Answer Read -1773560217, expect 2521407079. 2ms 284.0 KiB
#4 Wrong Answer Read 932583939, expect 9522518531. 2ms 284.0 KiB
#5 Wrong Answer Read -266877268, expect 4028090028. 2ms 204.0 KiB
#6 Wrong Answer Read -1810188527, expect 2484778769. 2ms 284.0 KiB
#7 Wrong Answer Read -1999089457, expect 6590845135. 2ms 284.0 KiB
#8 Wrong Answer Read -1041353636, expect 3253613660. 45ms 308.0 KiB
#9 Wrong Answer Read 1880978750, expect 6175946046. 39ms 312.0 KiB
#10 Wrong Answer Read 1492812011, expect 5787779307. 41ms 284.0 KiB

信息

递交者
类型
递交
题目
P1504 Problem 2A.拆弹专家
比赛
2023秋 悬赏令第二周
语言
C
递交时间
2023-10-17 15:03:34
评测时间
2023-10-17 15:03:34
评测机
分数
10
总耗时
142ms
峰值内存
312.0 KiB