Result

WA

Duration

658ms

Code [DL]

b,c,d;main(){char i[101];b=scanf("%s",&i);for(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

vl2u5f2a9xy9v6i4d9t6l2d2m8b2r4j5n3at7p7g8y3z7o8k5c6g4z9q2q9b2i2qiwq3l6y6e7a4r3q8y5i5a6h7s2m7s9

stdout

v

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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:1: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
/tmp/code.c:1:3: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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:5: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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:7: warning: return type defaults to 'int' [-Wimplicit-int]
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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:28: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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:28: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:28: note: include '<stdio.h>' or provide a declaration of 'scanf'
+#include <stdio.h>
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[101]' [-Wformat=]
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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:93: warning: the omitted middle operand in ?: will always be 'true', suggest explicit middle operand [-Wparentheses]
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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:102: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 b,c,d;main(){char i[101];b=scanf("%s",&i);for(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:102: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:102: note: include '<stdio.h>' or provide a declaration of 'printf'

strace