/in/foo.c: In function 'main':
/in/foo.c:11:13: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
scanf("%s%s",a1,a2);
~^ ~~
%ls
/in/foo.c:11:15: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int *' [-Wformat=]
scanf("%s%s",a1,a2);
~^ ~~
%ls
/in/foo.c:14:16: warning: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
strcat(a2,a1);
^~
In file included from /in/foo.c:2:0:
/usr/include/string.h:133:14: note: expected 'char * restrict' but argument is of type 'int *'
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
^~~~~~
/in/foo.c:14:19: warning: passing argument 2 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
strcat(a2,a1);
^~
In file included from /in/foo.c:2:0:
/usr/include/string.h:133:14: note: expected 'const char * restrict' but argument is of type 'int *'
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
^~~~~~
/in/foo.c:15:16: warning: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
strcat(a1,a2);
^~
In file included from /in/foo.c:2:0:
/usr/include/string.h:133:14: note: expected 'char * restrict' but argument is of type 'int *'
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
^~~~~~
/in/foo.c:15:19: warning: passing argument 2 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
strcat(a1,a2);
^~
In file included from /in/foo.c:2:0:
/usr/include/string.h:133:14: note: expected 'const char * restrict' but argument is of type 'int *'
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
^~~~~~
/in/foo.c:17:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
printf("%s",a1);
~^ ~~
%ls
/in/foo.c:9:12: warning: unused variable 'k' [-Wunused-variable]
int n,i=1,k=0;
^