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