prog.c: In function 'main':
prog.c:13:14: warning: format '%[^
' expects argument of type 'char *', but argument 2 has type 'int (*)[50]' [-Wformat=]
scanf("%[^\n]*c%",&a);
^
prog.c:13:19: warning: spurious trailing '%' in format [-Wformat=]
scanf("%[^\n]*c%",&a);
^
prog.c:14:14: warning: format '%[^
' expects argument of type 'char *', but argument 2 has type 'int (*)[50]' [-Wformat=]
scanf("%[^\n]*c%",&b);
^
prog.c:14:19: warning: spurious trailing '%' in format [-Wformat=]
scanf("%[^\n]*c%",&b);
^
prog.c:17:17: warning: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
for(i=strlen(a),j=0;1<=0;i--,j++)
^
In file included from prog.c:4:0:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'int *'
extern size_t strlen (const char *__s)
^~~~~~
prog.c:22:18: warning: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
for(i=strlen(b),j=0;1<=0;i--,j++)
^
In file included from prog.c:4:0:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'int *'
extern size_t strlen (const char *__s)
^~~~~~