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(i<0?48:49,1);}}

stdin

01101001
01001101
00100100
01101011
00101101
00001001
00111000
10101001
11111101
01111111
11100100
10011001
10101101
00110000
11110010
01000101
01001110
11111011
10100100
10100000
10011011
10101011
10111010
11010010
01101100
01111000
00000011
11100111
00000001
10001000
00001111
11100111
10011101
00010101
01000100
00110111
01000010
01011011
00100110
00000000
10011110
11100011
00011100
00001010
00011101
10000000
01001011
10111110
11010010
00000110

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(i<0?48:49,1);}}
 ^
/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(i<0?48:49,1);}}
                                                ^
/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(i<0?48:49,1);}}
                                                                                                  ^
/home/esolang/bin/c-gcc: line 6:    13 Done                    cat -
        14 Segmentation fault      (core dumped) | /tmp/code

strace