foo.cc: In function 'int main()':
foo.cc:19:94: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[300]' [-Wformat=]
scanf("%s %d %d %c %c %d",&st[i].name,&st[i].qm,&st[i].py,&st[i].s,&st[i].w,&st[i].lw);
~~~~~~~~~~~ ^
foo.cc:19:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %d %d %c %c %d",&st[i].name,&st[i].qm,&st[i].py,&st[i].s,&st[i].w,&st[i].lw);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务