prog.c: In function 'main':
prog.c:15:16: warning: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
len=strlen(a);
^
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:20:15: warning: format '%[^
' expects argument of type 'char *', but argument 2 has type 'int (*)[100]' [-Wformat=]
scanf("%[^\n]*c%",&a);
^
prog.c:20:20: warning: spurious trailing '%' in format [-Wformat=]
scanf("%[^\n]*c%",&a);
^
prog.c:22:13: error: assignment to expression with array type
while(a += ' ')
^~
prog.c:24:13: error: 'i' undeclared (first use in this function)
for(i=len-1;i>=0;i--)
^
prog.c:24:13: note: each undeclared identifier is reported only once for each function it appears in
prog.c:26:17: error: 'j' undeclared (first use in this function)
for(j=0;j<=len,j++)
^
prog.c:26:31: error: expected ';' before ')' token
for(j=0;j<=len,j++)
^
prog.c:28:18: error: 'rev' undeclared (first use in this function)
rev[i]==a[]
^~~
prog.c:28:28: error: expected expression before ']' token
rev[i]==a[]
^
Show more...