Result

WA

Code [DL]

i;main(n,x){for(;x;printf("%d",!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}

stdin

10000110
11101010
01110011
00000010
01000010
11000001
00101101
10111110
11011111
11100110
01111000
01011000
00000001
01110111
11010010
00011010
00001111
10111101
01101001
00000011
11111101
11101100
01100000
11000000
01011011
10110101
01111110
00110101
00110111
11100111
10001000
11111111
00011001
11010010
01101011
11101111
00010101
00100100
10101011
00101110
01001110
00101100
01010100
00000011
00000110
00011100
10011001
10111010
00001010
00000000

stdout

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i;main(n,x){for(;x;printf("%d",!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;printf("%d",!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 ‘printf’ [-Wimplicit-function-declaration]
 i;main(n,x){for(;x;printf("%d",!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}
                    ^
/tmp/code.c:1:20: warning: incompatible implicit declaration of built-in function ‘printf’
/tmp/code.c:1:20: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
/tmp/code.c:1:42: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 i;main(n,x){for(;x;printf("%d",!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}
                                          ^
/tmp/code.c:1:51: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 i;main(n,x){for(;x;printf("%d",!n))for(n=strtol(x=gets(&n),i=0,2);n>0;n-=i++);}
                                                   ^
/tmp/ccYhuefy.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