/in/foo.c: In function 'main':
/in/foo.c:5:5: error: expected ',' or ';' before 'int'
int n=3;
^~~
/in/foo.c:7:17: error: 'n' undeclared (first use in this function)
int*p=min(a,n);
^
/in/foo.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
printf("%d",&(*p));//输出地址
^
/in/foo.c: In function 'min':
/in/foo.c:17:22: error: 'P' undeclared (first use in this function)
if(array[i]<*P)
^