Result

AC

Code [DL]

i;a;b;main(){for(;a++<50;putchar(48+!i)){for(i=0,b=9;b--;)i+=i+getchar()%2;for(i/=2;i>0;)i-=++b;}}

stdin

00111111
00000001
00010101
00011111
00010100
01100001
00001010
11000010
00000110
10001000
00001111
00011100
00000011
11101111
11111101
01100110
11100111
01111000
11110101
11111110
11010010
01001000
00000111
00100100
11100111
10100101
00101101
11101101
11100110
10111110
10101011
00100010
01011001
01011011
00110111
01011011
01010010
11101010
00101111
00111000
00000000
10011001
01001110
01000010
11000100
00100110
10110011
01101001
10010001
10100100

stdout

01100010111110101100100110100110011100001111000100

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i;a;b;main(){for(;a++<50;putchar(48+!i)){for(i=0,b=9;b--;)i+=i+getchar()%2;for(i/=2;i>0;)i-=++b;}}
 ^
/tmp/code.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
/tmp/code.c:1:3: warning: data definition has no type or storage class
 i;a;b;main(){for(;a++<50;putchar(48+!i)){for(i=0,b=9;b--;)i+=i+getchar()%2;for(i/=2;i>0;)i-=++b;}}
   ^
/tmp/code.c:1:3: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
/tmp/code.c:1:5: warning: data definition has no type or storage class
 i;a;b;main(){for(;a++<50;putchar(48+!i)){for(i=0,b=9;b--;)i+=i+getchar()%2;for(i/=2;i>0;)i-=++b;}}
     ^
/tmp/code.c:1:5: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
/tmp/code.c:1:7: warning: return type defaults to ‘int’ [-Wimplicit-int]
 i;a;b;main(){for(;a++<50;putchar(48+!i)){for(i=0,b=9;b--;)i+=i+getchar()%2;for(i/=2;i>0;)i-=++b;}}
       ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:26: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 i;a;b;main(){for(;a++<50;putchar(48+!i)){for(i=0,b=9;b--;)i+=i+getchar()%2;for(i/=2;i>0;)i-=++b;}}
                          ^
/tmp/code.c:1:64: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
 i;a;b;main(){for(;a++<50;putchar(48+!i)){for(i=0,b=9;b--;)i+=i+getchar()%2;for(i/=2;i>0;)i-=++b;}}
                                                                ^

strace