/in/foo.c: In function 'main':
/in/foo.c:4:15: warning: missing braces around initializer [-Wmissing-braces]
int a[2][3]={1,2,3,4,5,6},n;
^
/in/foo.c:4:15: note: (near initialization for 'a')
/in/foo.c:8:22: warning: passing argument 1 of 'add' from incompatible pointer type [-Wincompatible-pointer-types]
printf("%d ",add(a+n));
^
/in/foo.c:5:7: note: expected 'int **' but argument is of type 'int (*)[3]'
int add(int *p[3]);
^~~
/in/foo.c: In function 'add':
/in/foo.c:17:8: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
sum+=*(p+i);
^~
#'target_mem_ref' not supported by expression#'/in/foo.c: In function 'main':
/in/foo.c:17:10: warning: is used uninitialized in this function [-Wuninitialized]
sum+=*(p+i);
^~~~~~
/in/foo.c:4:7: note: 'a' was declared here
int a[2][3]={1,2,3,4,5,6},n;
^