Result

AC

Code [DL]

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

stdin

10101100
11111101
10101011
00110111
01011011
00000011
11100000
00001010
00001111
11110100
10010100
00000110
10010111
00000001
01101001
00100110
11110111
11001011
00010000
00010101
11111000
01011001
01000000
01001110
00101101
00010011
00100010
00101011
00100100
00011100
00100000
10011001
11010010
10000110
10110110
10110111
10001000
01101001
00101000
00011100
10111110
11100111
01111000
00111000
00111111
01010111
01111010
01000010
11100100
00000000

stdout

01111101100101100001000110001101100011011110000101

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 a;c[];main(i){for(;gets(c);putchar(48+!i))for(i=strtol(c,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: data definition has no type or storage class
 a;c[];main(i){for(;gets(c);putchar(48+!i))for(i=strtol(c,0,2),a=0;i>0;i-=++a);}
   ^
/tmp/code.c:1:3: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
/tmp/code.c:1:7: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a;c[];main(i){for(;gets(c);putchar(48+!i))for(i=strtol(c,0,2),a=0;i>0;i-=++a);}
       ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:7: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:20: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 a;c[];main(i){for(;gets(c);putchar(48+!i))for(i=strtol(c,0,2),a=0;i>0;i-=++a);}
                    ^
/tmp/code.c:1:28: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 a;c[];main(i){for(;gets(c);putchar(48+!i))for(i=strtol(c,0,2),a=0;i>0;i-=++a);}
                            ^
/tmp/code.c:1:49: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 a;c[];main(i){for(;gets(c);putchar(48+!i))for(i=strtol(c,0,2),a=0;i>0;i-=++a);}
                                                 ^
/tmp/code.c: At top level:
/tmp/code.c:1:3: warning: array ‘c’ assumed to have one element
 a;c[];main(i){for(;gets(c);putchar(48+!i))for(i=strtol(c,0,2),a=0;i>0;i-=++a);}
   ^
/tmp/ccwhlSoG.o: In function `main':
code.c:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.

strace