Result

WA

Code [DL]

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

stdin

01111000
01100101
11100111
10101001
11111101
00000001
10101011
11010011
10001000
00010101
10101011
11001001
00100100
01000010
10001010
00101000
10001111
00000110
11110110
01011011
00100011
00001100
10010101
00000011
10111110
00101101
10001100
11011001
00010101
10011001
00110101
00110111
01101001
01100010
11101001
11010010
10110001
10110101
10110011
11110101
01001011
00001010
11010100
11001111
00000000
00101100
01001110
01111110
00011100
00001111

stdout

stderr

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

strace