Result

WA

Code [DL]

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

stdin

10000001
10011001
11100000
00000110
00001010
00000011
11101111
00110111
01100011
00011100
00110111
00011010
01110100
00101101
11101101
00100100
01000010
00010100
10110011
00010111
01011011
10001000
00010101
01111000
10100101
11100111
11001010
00000000
01011001
11010010
00111000
00000001
00000010
11000001
11111101
01001110
10011111
00010101
01101001
01011111
01101011
00010011
10101011
11110010
00001111
00100011
01111100
10011011
10111110
01100010

stdout

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i;main(n,x){for(;x;putchar(48+!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}
 ^
/tmp/code.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
/tmp/code.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
 i;main(n,x){for(;x;putchar(48+!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}
   ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:3: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:3: warning: type of ‘x’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:20: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 i;main(n,x){for(;x;putchar(48+!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}
                    ^
/tmp/code.c:1:41: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 i;main(n,x){for(;x;putchar(48+!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}
                                         ^
/tmp/code.c:1:50: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 i;main(n,x){for(;x;putchar(48+!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}
                                                  ^
/tmp/cc5qkD6L.o: In function `main':
code.c:(.text.startup+0x22): warning: the `gets' function is dangerous and should not be used.
/home/esolang/bin/c-gcc: line 6:    13 Done                    cat -
        14 Segmentation fault      (core dumped) | /tmp/code

strace