foo.c: In function 'main':
foo.c:13:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
foo.c:23:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("\n%s%d %d %c %c %d",b[i].name,&b[i].score1,&b[i].score2,&b[i].ganbu,&b[i].xibu,&b[i].cnt);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:12:17: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
int n,sum=0,max;
^~~
[Hydro](https://hydro.ac)提供评测服务