记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:24:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   24 |         else
      |         ^~~~
foo.c:28:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   28 |                 switch(a[0][0])
      |                 ^~~~~~
foo.c:10:25: warning: array subscript 1 is above array bounds of 'int[1][1]' [-Warray-bounds]
   10 |                         scanf("%d",&a[i][j]);
      |                         ^~~~~~~~~~~~~~~~~~~~
foo.c:4:13: note: while referencing 'a'
    4 |         int a[1][1];
      |             ^
foo.c:10:25: warning: array subscript 1 is above array bounds of 'int[1][1]' [-Warray-bounds]
   10 |                         scanf("%d",&a[i][j]);
      |                         ^~~~~~~~~~~~~~~~~~~~
foo.c:4:13: note: while referencing 'a'
    4 |         int a[1][1];
      |             ^
foo.c:16:12: warning: array subscript 1 is above array bounds of 'int[1][1]' [-Warray-bounds]
   16 |         z=a[1][0]-a[0][0]-1;
      |           ~^~~
foo.c:4:13: note: while referencing 'a'
    4 |         int a[1][1];
      |             ^
foo.c:68:15: warning: array subscript 1 is above array bounds of 'int[1]' [-Warray-bounds]
   68 |         y=a[1][1];
      |           ~~~~^~~
foo.c:4:13: note: while referencing 'a'
    4 |         int a[1][1];
      |             ^
foo.c:77:9: warning: 'days' may be used uninitialized in this function [-Wmaybe-uninitialized]
   77 |         printf("%d",days);
      |         ^~~~~~~~~~~~~~~~~
foo.c:75:29: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
   75 |                         days=x+y+k;
      |                         ~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 364. 2ms 256.0 KiB
#2 Wrong Answer Read 67, expect 0. 2ms 384.0 KiB
#3 Wrong Answer Read 0, expect 25. 3ms 384.0 KiB
#4 Wrong Answer Read 0, expect 28. 2ms 256.0 KiB
#5 Wrong Answer Read 0, expect 306. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1083 xf1-6计算日期
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 19:02:57
评测时间
2022-08-27 19:02:57
评测机
分数
0
总耗时
13ms
峰值内存
384.0 KiB