Result

WA

Code [DL]

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

stdin

10111000
01100111
01100000
01111000
00111001
00000001
01101110
11111101
00000010
00100100
01010111
00011110
00011100
10111110
11101110
10010011
01010010
11110100
00010101
00110010
11000001
10001000
10100110
11100111
11010101
11100111
10101011
00001010
00000110
01001110
01110101
00110111
11100111
00000000
11011101
01000010
00101101
01000001
01111010
01011011
01011010
00011111
11001011
00101100
00000011
11010010
00001111
01101001
10011001
01110010

stdout

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i;main(n,x){for(putc(48,stdout);x;putchar(48+!n))n=strtol(x=gets(&n),i=0,2);}
 ^
/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(putc(48,stdout);x;putchar(48+!n))n=strtol(x=gets(&n),i=0,2);}
   ^
/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:17: warning: implicit declaration of function ‘putc’ [-Wimplicit-function-declaration]
 i;main(n,x){for(putc(48,stdout);x;putchar(48+!n))n=strtol(x=gets(&n),i=0,2);}
                 ^
/tmp/code.c:1:25: error: ‘stdout’ undeclared (first use in this function)
 i;main(n,x){for(putc(48,stdout);x;putchar(48+!n))n=strtol(x=gets(&n),i=0,2);}
                         ^
/tmp/code.c:1:25: note: each undeclared identifier is reported only once for each function it appears in
/tmp/code.c:1:35: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 i;main(n,x){for(putc(48,stdout);x;putchar(48+!n))n=strtol(x=gets(&n),i=0,2);}
                                   ^
/tmp/code.c:1:52: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 i;main(n,x){for(putc(48,stdout);x;putchar(48+!n))n=strtol(x=gets(&n),i=0,2);}
                                                    ^
/tmp/code.c:1:61: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 i;main(n,x){for(putc(48,stdout);x;putchar(48+!n))n=strtol(x=gets(&n),i=0,2);}
                                                             ^
/home/esolang/bin/c-gcc: line 6: /tmp/code: No such file or directory
rm: cannot remove '/tmp/code': No such file or directory

strace