Result

AC

Code [DL]

char c,s[100],i;main(){read(0,&s,100);for(;10-c++;)for(i=100;1+i--;write(1,s+i,s[i]==c+47));}

stdin

5115994646862685259803869732026155274861087125924777099236505940632050672019200296810344638383580372

stdout

0000000000000111111122222222222223333333334444444555555555556666666666667777777788888888889999999999

stderr

/volume/CODE.c:1:17: warning: return type defaults to ‘int’ [-Wimplicit-int]
 char c,s[100],i;main(){read(0,&s,100);for(;10-c++;)for(i=100;1+i--;write(1,s+i,s[i]==c+47));}
                 ^
/volume/CODE.c: In function ‘main’:
/volume/CODE.c:1:24: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
 char c,s[100],i;main(){read(0,&s,100);for(;10-c++;)for(i=100;1+i--;write(1,s+i,s[i]==c+47));}
                        ^
/volume/CODE.c:1:68: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
 char c,s[100],i;main(){read(0,&s,100);for(;10-c++;)for(i=100;1+i--;write(1,s+i,s[i]==c+47));}
                                                                    ^
/volume/CODE.c:1:81: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 char c,s[100],i;main(){read(0,&s,100);for(;10-c++;)for(i=100;1+i--;write(1,s+i,s[i]==c+47));}
                                                                                 ^

strace