Result

WA

Code [DL]

f(int*a,int*b){return*a-*b;}s[1];main(){gets(s);qsort(s,100,1,f);puts(s);}

stdin

3207135965149077386441799340938231269999276618223375815880007845949937165368690437480834094497746609

stdout

8173608350857001759298340372065331268323126938869649066403807843477944974499591899716441370974529996

stderr

/volume/CODE.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 f(int*a,int*b){return*a-*b;}s[1];main(){gets(s);qsort(s,100,1,f);puts(s);}
 ^
/volume/CODE.c:1:29: warning: data definition has no type or storage class
 f(int*a,int*b){return*a-*b;}s[1];main(){gets(s);qsort(s,100,1,f);puts(s);}
                             ^
/volume/CODE.c:1:29: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
/volume/CODE.c:1:34: warning: return type defaults to ‘int’ [-Wimplicit-int]
 f(int*a,int*b){return*a-*b;}s[1];main(){gets(s);qsort(s,100,1,f);puts(s);}
                                  ^
/volume/CODE.c: In function ‘main’:
/volume/CODE.c:1:41: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 f(int*a,int*b){return*a-*b;}s[1];main(){gets(s);qsort(s,100,1,f);puts(s);}
                                         ^
/volume/CODE.c:1:49: warning: implicit declaration of function ‘qsort’ [-Wimplicit-function-declaration]
 f(int*a,int*b){return*a-*b;}s[1];main(){gets(s);qsort(s,100,1,f);puts(s);}
                                                 ^
/volume/CODE.c:1:66: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 f(int*a,int*b){return*a-*b;}s[1];main(){gets(s);qsort(s,100,1,f);puts(s);}
                                                                  ^
/tmp/ccIBqVi6.o: In function `main':
CODE.c:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.

strace