Result

WA

Code [DL]

int i,a,b;main(){for(;a<1;a++){b=9;while(b--)i=i*2|getchar()&1;i/=2;while(i>0)i-=++b;putchar(i?48:49);}}

stdin

01011011
00001010
00111001
00010101
00000001
11001001
01111000
10111110
01000010
11010111
01100100
10011100
00000110
11111101
00001111
11010010
00110111
11010000
11001110
01111111
01010001
00000000
10010010
10001000
11100100
00101101
01011000
00010011
10001000
01110110
00111010
10011001
01101001
10000110
01010000
11000001
11000110
01000110
00011100
11100111
01001110
11100011
10101011
00000011
00100100
10011000
01001101
11101000
11011001
00101101

stdout

1

stderr

/tmp/code.c:1:11: warning: return type defaults to ‘int’ [-Wimplicit-int]
 int i,a,b;main(){for(;a<1;a++){b=9;while(b--)i=i*2|getchar()&1;i/=2;while(i>0)i-=++b;putchar(i?48:49);}}
           ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:52: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
 int i,a,b;main(){for(;a<1;a++){b=9;while(b--)i=i*2|getchar()&1;i/=2;while(i>0)i-=++b;putchar(i?48:49);}}
                                                    ^
/tmp/code.c:1:61: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
 int i,a,b;main(){for(;a<1;a++){b=9;while(b--)i=i*2|getchar()&1;i/=2;while(i>0)i-=++b;putchar(i?48:49);}}
                                                             ^
/tmp/code.c:1:86: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 int i,a,b;main(){for(;a<1;a++){b=9;while(b--)i=i*2|getchar()&1;i/=2;while(i>0)i-=++b;putchar(i?48:49);}}
                                                                                      ^

strace