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