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

4719780572946996000555203219438734550843851872490281893965325513078192305247703085479924685086552224

stdout

0000000000001111112222222222223333333334444444444555555555555555666667777777778888888888899999999999

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:64: 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:77: 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