Result

AC

Code [DL]

a;main(i){for(;gets(&i);putchar(48+!i))for(i=strtol(&i,0,2),a=0;i>0;i-=++a);}

stdin

01110010
00010101
11011110
01110101
01001110
01110000
01101001
11000111
10011101
01010000
00010101
11100111
01101001
10001000
00100100
10110110
00000000
10000111
01111000
00000001
00000011
11111101
01011011
00100010
00000110
01000010
10111110
00001101
11011000
10011001
11010010
10111001
00110011
11100110
11110010
10100000
00110111
11110101
00101101
10101011
00110100
00111100
00001010
11010100
00111110
00001111
00011100
10100010
10000100
11101101

stdout

01001010001111101011111011100110000010110010011000

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 a;main(i){for(;gets(&i);putchar(48+!i))for(i=strtol(&i,0,2),a=0;i>0;i-=++a);}
 ^
/tmp/code.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
/tmp/code.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a;main(i){for(;gets(&i);putchar(48+!i))for(i=strtol(&i,0,2),a=0;i>0;i-=++a);}
   ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:3: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:16: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 a;main(i){for(;gets(&i);putchar(48+!i))for(i=strtol(&i,0,2),a=0;i>0;i-=++a);}
                ^
/tmp/code.c:1:25: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 a;main(i){for(;gets(&i);putchar(48+!i))for(i=strtol(&i,0,2),a=0;i>0;i-=++a);}
                         ^
/tmp/code.c:1:46: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 a;main(i){for(;gets(&i);putchar(48+!i))for(i=strtol(&i,0,2),a=0;i>0;i-=++a);}
                                              ^
/tmp/ccU0a5VY.o: In function `main':
code.c:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.

strace