Result

WA

Code [DL]

a;main(i){for(;scanf("%b ",&i);putchar(48+!i))for(;i>0;i-=++a);}

stdin

01001110
11001100
01101100
00100011
00000001
01011011
00000110
01010110
01111000
00110001
00010101
11000001
00110000
01000000
11110000
10001000
10010010
00001111
10010011
10000100
00100100
01011011
10101011
01111010
10000010
00101101
11111101
00000011
01001010
10111110
00100010
11110110
10011001
11100111
10001000
00110100
01000010
10111011
00000000
01101001
11010111
00110011
00001010
10001100
11111100
11001001
11010010
00011100
00110111
11111111

stdout

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 a;main(i){for(;scanf("%b ",&i);putchar(48+!i))for(;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: return type defaults to ‘int’ [-Wimplicit-int]
 a;main(i){for(;scanf("%b ",&i);putchar(48+!i))for(;i>0;i-=++a);}
   ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:3: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:16: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 a;main(i){for(;scanf("%b ",&i);putchar(48+!i))for(;i>0;i-=++a);}
                ^
/tmp/code.c:1:16: warning: incompatible implicit declaration of built-in function ‘scanf’
/tmp/code.c:1:16: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
/tmp/code.c:1:22: warning: unknown conversion type character ‘b’ in format [-Wformat=]
 a;main(i){for(;scanf("%b ",&i);putchar(48+!i))for(;i>0;i-=++a);}
                      ^
/tmp/code.c:1:22: warning: too many arguments for format [-Wformat-extra-args]
/tmp/code.c:1:32: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 a;main(i){for(;scanf("%b ",&i);putchar(48+!i))for(;i>0;i-=++a);}
                                ^

strace