Result

WA

Code [DL]

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

stdin

01011110
10101111
00011100
01001110
00011011
10101010
01111000
10000101
01111000
11111111
01101010
00101101
01101001
10101101
01111011
00000001
01001111
10101001
11100111
00001111
01111001
11110101
11001000
11111101
10011001
11010010
11011011
11101010
01110110
00000011
00011101
10111110
01011011
00100100
00001010
01010110
00011110
10101011
10001000
00000000
11111110
00000110
01000010
10010101
11000111
00010111
00010101
01110100
00110111
01101001

stdout

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<8;b++){i+=getchar()&1;i*=2;}getchar();i/=2;for(b=0;i>0;)i-=b++;puts(i<0?48:49);}}
           ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:55: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
 int i,a,b;main(){for(;a<50;a++){for(b=i=0;b<8;b++){i+=getchar()&1;i*=2;}getchar();i/=2;for(b=0;i>0;)i-=b++;puts(i<0?48:49);}}
                                                       ^
/tmp/code.c:1:108: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 int i,a,b;main(){for(;a<50;a++){for(b=i=0;b<8;b++){i+=getchar()&1;i*=2;}getchar();i/=2;for(b=0;i>0;)i-=b++;puts(i<0?48:49);}}
                                                                                                            ^
/home/esolang/bin/c-gcc: line 6:    13 Done                    cat -
        14 Segmentation fault      (core dumped) | /tmp/code

strace