Result

WA

Code [DL]

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

stdin

01001110
01011101
10010000
11100111
00101101
00111100
01101111
00010001
01000110
00000110
01101110
00011100
01101000
01001110
11000100
00001010
00101001
10001000
01000010
10100111
00000011
01011011
10000110
11011001
01101001
10010101
10101011
10001110
00110011
00100100
01000010
01101101
11111000
11010010
10111110
10110110
11111010
10011001
00001111
11111101
11100000
00000001
10101101
01111000
00101000
01100010
00000000
10111000
00110111
00010101

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=1,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=1,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:21: 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=1,2);n>0;n-=i);}
                     ^
/tmp/code.c:1:43: 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=1,2);n>0;n-=i);}
                                           ^
/tmp/code.c:1:52: 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=1,2);n>0;n-=i);}
                                                    ^
/tmp/ccGe6WMn.o: In function `main':
code.c:(.text.startup+0x37): 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