foo.cc: In function 'int main()':
foo.cc:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:26:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%s",stu[i].name);
| ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:28:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d",&stu[i].finalScore);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:30:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%d",&stu[i].classScore);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:32:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
32 | scanf(" %c",&stu[i].work);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:34:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf(" %c",&stu[i].west);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:36:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d",&stu[i].paper);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务