foo.c: In function 'main':
foo.c:26:16: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[1000]' [-Wformat=]
26 | scanf("%d %s %s", &n,&a,&b);
| ~^ ~~
| | |
| char * char (*)[1000]
foo.c:26:19: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'char (*)[1000]' [-Wformat=]
26 | scanf("%d %s %s", &n,&a,&b);
| ~^ ~~
| | |
| char * char (*)[1000]
foo.c:29:9: warning: unused variable 'len2' [-Wunused-variable]
29 | int len2 = strlen(b);
| ^~~~
foo.c:28:9: warning: unused variable 'len1' [-Wunused-variable]
28 | int len1 = strlen(a);
| ^~~~
[Hydro](https://hydro.ac)提供评测服务