foo.c:21:6: error: conflicting types for 'zuidazhi'
void zuidazhi(int a[],int n)
^~~~~~~~
foo.c:7:8: note: previous declaration of 'zuidazhi' was here
int zuidazhi(int a[],int n);
^~~~~~~~
foo.c: In function 'zuidazhi':
foo.c:30:18: error: void value not ignored as it ought to be
m=a[n-1]>zuidazhi(a,n-1)?a[n-1]:zuidazhi(a,n-1);
^~~~~~~~~~~~~~~
foo.c: In function 'main':
foo.c:5:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
foo.c: In function 'shuru':
foo.c:18:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务