foo.cc: In function 'int main()':
foo.cc:37:58: warning: format '%c' expects argument of type 'int', but argument 4 has type 'double' [-Wformat=]
printf("%-8d%-8s%-8c%-8f\n",s[i].num,s[i].name,s[i].score);
~~~~~~~~~~^
foo.cc:37:58: warning: format '%f' expects a matching 'double' argument [-Wformat=]
foo.cc:22:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%s%d%f",&s[i].num,s[i].name,&s[i].sex,&s[i].score);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务