记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:4:15: warning: missing braces around initializer [-Wmissing-braces]
   int a[2][3]={1,2,3,4,5,6},n;
               ^
                {    }{    }
foo.c:17:8: warning: '*((void *)&a+24)[0]' is used uninitialized in this function [-Wuninitialized]
     sum+=*(p[i]);
     ~~~^~~~~~~~~
foo.c:4:7: note: '*((void *)&a+24)[0]' was declared here
   int a[2][3]={1,2,3,4,5,6},n;
       ^
foo.c:17:8: warning: '*((void *)&a+36)[0]' is used uninitialized in this function [-Wuninitialized]
     sum+=*(p[i]);
     ~~~^~~~~~~~~
foo.c:4:7: note: '*((void *)&a+36)[0]' was declared here
   int a[2][3]={1,2,3,4,5,6},n;
       ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 5, expect 6. 0ms 196.0 KiB

信息

递交者
类型
自测
题目
P1029 比比谁更小
语言
C
递交时间
2021-11-29 16:59:34
评测时间
2021-11-29 16:59:34
评测机
分数
0
总耗时
0ms
峰值内存
196.0 KiB