Result

WA

Duration

596ms

Code [DL]

main(){char i[101];int b,c,d;for(b=scanf(%s,&i),d=b;b;b--)if(i[d-b]-48>9)for(c=i[d-b-1]-48<=9?:1;c;c--)printf("%c",i[d-b]);}

stdin

z6d4e4f2c9j6i6m6y5mu7r2w9se9a2l2x3j5o6v8p4p7z5x4n4r7t5m9v2e6a4n2j6q2l2f7ka6r8w2s7z3f4g4nvbp7h4

stdout

stderr

/tmp/code.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(){char i[101];int b,c,d;for(b=scanf(%s,&i),d=b;b;b--)if(i[d-b]-48>9)for(c=i[d-b-1]-48<=9?:1;c;c--)printf("%c",i[d-b]);}
 ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:36: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 main(){char i[101];int b,c,d;for(b=scanf(%s,&i),d=b;b;b--)if(i[d-b]-48>9)for(c=i[d-b-1]-48<=9?:1;c;c--)printf("%c",i[d-b]);}
                                    ^~~~~
/tmp/code.c:1:36: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:36: note: include '<stdio.h>' or provide a declaration of 'scanf'
+#include <stdio.h>
 main(){char i[101];int b,c,d;for(b=scanf(%s,&i),d=b;b;b--)if(i[d-b]-48>9)for(c=i[d-b-1]-48<=9?:1;c;c--)printf("%c",i[d-b]);}
                                    ^~~~~
/tmp/code.c:1:42: error: expected expression before '%' token
 main(){char i[101];int b,c,d;for(b=scanf(%s,&i),d=b;b;b--)if(i[d-b]-48>9)for(c=i[d-b-1]-48<=9?:1;c;c--)printf("%c",i[d-b]);}
                                          ^
/tmp/code.c:1:48: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 main(){char i[101];int b,c,d;for(b=scanf(%s,&i),d=b;b;b--)if(i[d-b]-48>9)for(c=i[d-b-1]-48<=9?:1;c;c--)printf("%c",i[d-b]);}
                                                ^
/tmp/code.c:1:95: warning: the omitted middle operand in ?: will always be 'true', suggest explicit middle operand [-Wparentheses]
 main(){char i[101];int b,c,d;for(b=scanf(%s,&i),d=b;b;b--)if(i[d-b]-48>9)for(c=i[d-b-1]-48<=9?:1;c;c--)printf("%c",i[d-b]);}
                                                                                               ^
/tmp/code.c:1:104: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 main(){char i[101];int b,c,d;for(b=scanf(%s,&i),d=b;b;b--)if(i[d-b]-48>9)for(c=i[d-b-1]-48<=9?:1;c;c--)printf("%c",i[d-b]);}
                                                                                                        ^~~~~~
/tmp/code.c:1:104: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:104: note: include '<stdio.h>' or provide a declaration of 'printf'
/root/script: line 7: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace