foo.c: In function 'main':
foo.c:15:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[50]' [-Wformat=]
15 | scanf("%s%d%d %c %c %d",&a[i].name,&a[i].data,
| ~^ ~~~~~~~~~~
| | |
| char * char (*)[50]
foo.c:13:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
foo.c:15:1: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%s%d%d %c %c %d",&a[i].name,&a[i].data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 | &a[i].pin,&a[i].a1,&a[i].a2,&a[i].wen);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务