foo.cc: In function 'int main()':
foo.cc:34:79: warning: format '%c' expects argument of type 'int', but argument 3 has type 'char*' [-Wformat=]
printf("%-8d%-8c%-8d%-8f",s1[i].num,s1[i].name,s1[i].sex?'M':'F',s1[i].score);
^
foo.cc:18:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%s%d%f",&s1[i].num,s1[i].name,&s1[i].sex,&s1[i].score);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务