foo.c: In function 'main':
foo.c:48:14: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[25]' [-Wformat=]
48 | scanf("%s %s", &(arr[i].name), tempstr);
| ~^ ~~~~~~~~~~~~~~
| | |
| char * char (*)[25]
foo.c:44:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
44 | scanf("%d", &n);
| ^~~~~~~~~~~~~~~
foo.c:48:6: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
48 | scanf("%s %s", &(arr[i].name), tempstr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务