int main(void) { f("bBaAdD"); f("NniIcCeE"); f("Tt eE Ss tT"); f("sS Ee tT"); f("1!1!1sStT!"); f("nN00bB"); f("(eE.gG.)"); f("Hh3lL|@!"); f("aAa"); // aa f("aA"); // a f("Aaa"); // Aa f("aaaAAA"); // aaaAA f("AA"); // AA f("AB"); // AB return 0; }
Standard input is empty
prog.c:2:1: warning: data definition has no type or storage class
c;d;f(char*s){for(putchar(c=*s))s+=isalpha(c)*(d=*++s)&&(!((c^d)&95)&&c^d);}
^
prog.c:2:1: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
prog.c:2:3: warning: data definition has no type or storage class
c;d;f(char*s){for(putchar(c=*s))s+=isalpha(c)*(d=*++s)&&(!((c^d)&95)&&c^d);}
^
prog.c:2:3: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
prog.c:2:5: warning: return type defaults to 'int' [-Wimplicit-int]
c;d;f(char*s){for(putchar(c=*s))s+=isalpha(c)*(d=*++s)&&(!((c^d)&95)&&c^d);}
^
prog.c: In function 'f':
prog.c:2:19: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
c;d;f(char*s){for(putchar(c=*s))s+=isalpha(c)*(d=*++s)&&(!((c^d)&95)&&c^d);}
^
prog.c:2:32: error: expected ';' before ')' token
c;d;f(char*s){for(putchar(c=*s))s+=isalpha(c)*(d=*++s)&&(!((c^d)&95)&&c^d);}
^
prog.c:2:32: error: expected expression before ')' token
prog.c:2:36: warning: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration]
c;d;f(char*s){for(putchar(c=*s))s+=isalpha(c)*(d=*++s)&&(!((c^d)&95)&&c^d);}
^
prog.c:2:34: warning: operation on 's' may be undefined [-Wsequence-point]
c;d;f(char*s){for(putchar(c=*s))s+=isalpha(c)*(d=*++s)&&(!((c^d)&95)&&c^d);}
^
prog.c: In function 'main':
prog.c:6:2: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
puts("");
^
prog.c: In function 'f':
prog.c:2:32: warning: control reaches end of non-void function [-Wreturn-type]
c;d;f(char*s){for(putchar(c=*s))s+=isalpha(c)*(d=*++s)&&(!((c^d)&95)&&c^d);}
^
Standard output is empty