Result

WA

Duration

1025ms

Code [DL]

char*s,v[9];main(){for(gets(s=v);*s;)putchar((s[5]+s[12]+s[17]+*s++>195)+48);}

stdin

11101111000101001101111001100111111010011011011101

stdout

stderr

/tmp/code.c:1:13: warning: return type defaults to 'int' [-Wimplicit-int]
 char*s,v[9];main(){for(gets(s=v);*s;)putchar((s[5]+s[12]+s[17]+*s++>195)+48);}
             ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:24: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 char*s,v[9];main(){for(gets(s=v);*s;)putchar((s[5]+s[12]+s[17]+*s++>195)+48);}
                        ^~~~
/tmp/code.c:1:38: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
 char*s,v[9];main(){for(gets(s=v);*s;)putchar((s[5]+s[12]+s[17]+*s++>195)+48);}
                                      ^~~~~~~
/tmp/code.c:1:66: warning: operation on 's' may be undefined [-Wsequence-point]
 char*s,v[9];main(){for(gets(s=v);*s;)putchar((s[5]+s[12]+s[17]+*s++>195)+48);}
                                                                 ~^~
/tmp/code.c:1:66: warning: operation on 's' may be undefined [-Wsequence-point]
/tmp/code.c:1:66: warning: operation on 's' may be undefined [-Wsequence-point]
Segmentation fault (core dumped)

strace