Result

AC

Code [DL]

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

stdin

01010111
11101101
00001111
11111110
00000110
10100011
10111110
00011100
01111010
01100001
10101100
01011000
10101011
01111000
11111111
01011011
10011001
00010101
00100100
01110000
00000001
01111111
00000100
11010010
00000010
01101100
11100110
10000110
01101101
00000000
00101101
10110011
01100101
00001010
00110111
11111101
01001110
01101001
00111010
00000011
10001000
10001001
11010100
10100101
00000110
00011100
10100110
01000010
10010111
11100111

stdout

00101011000011011110100100000110011111011000110101

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,a=0,2);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,a=0,2);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,a=0,2);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,a=0,2);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,a=0,2);i>0;i-=++a);}
                                              ^
/tmp/cccxDeUS.o: In function `main':
code.c:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.

strace