/in/foo.c: In function 'main':
/in/foo.c:14:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
printf("%s %d",a[i],c[i]);
^
/in/foo.c: In function 's':
/in/foo.c:22:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf("%d%d",m,j);
^
/in/foo.c:22:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
scanf("%d%d",m,j);
^
/in/foo.c:29:8: error: 'p' undeclared (first use in this function)
for(p=0;p<n;p++){
^
/in/foo.c:29:8: note: each undeclared identifier is reported only once for each function it appears in