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