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)提供评测服务