Result

AC

Code [DL]

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

stdin

11100111
11010110
00000110
01011011
00100100
01100111
00011100
00111111
01010101
00000011
00110111
00100001
11101011
01010100
11011011
00001010
01000000
00101101
10101011
10111110
00001111
10011001
10111001
10100111
10001000
01111000
11000001
01101001
11010010
00000001
11100111
00000000
01000010
01001110
00011011
01100000
11111101
10011110
10111010
00010101
11011010
10000101
00101111
11100100
01110100
00101001
10110011
10101101
00001111
11010011

stdout

10111010011000010111110011011111110010010000000010

stderr

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

strace