foo.c: In function 'main':
foo.c:22:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[20]' [-Wformat=]
scanf("%s %d %d %c %c %d", &stu[i].name,&stu[i].score,&stu[i].cla,&stu[i].leader,&stu[i].west,&stu[i].paper);
~^ ~~~~~~~~~~~~
foo.c:19:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^~~~~~~~~~~~~~~
foo.c:22:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %d %d %c %c %d", &stu[i].name,&stu[i].score,&stu[i].cla,&stu[i].leader,&stu[i].west,&stu[i].paper);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务