foo.c: In function 'main':
foo.c:12:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[1000]' [-Wformat=]
12 | scanf("%s",&s1);
| ~^ ~~~
| | |
| | char (*)[1000]
| char *
foo.c:13:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[1000]' [-Wformat=]
13 | scanf("%s",&s2);
| ~^ ~~~
| | |
| | char (*)[1000]
| char *
foo.c:12:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%s",&s1);
| ^~~~~~~~~~~~~~~
foo.c:13:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%s",&s2);
| ^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务