Result

AC

Code [DL]

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

stdin

1762656729295238242879209583040615664012562615086755974040114153437850569412295986869769159940859794

stdout

0000000001111111112222222222233334444444444555555555555556666666666666777777778888888899999999999999

stderr

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

strace