by@satos___jp
WA
main(j,s,a,t){for(;gets(s);putchar(a?49:48)){t=strtol(s,s,2);a=0;for(j=t;j--;)a+=j*(j+1)==t*2;}}
11001100 11111101 00101000 00000110 10001001 10111111 10100010 10111010 01110100 00000001 10001011 01011011 00011100 01001110 11111101 00001010 00010010 01000010 10111011 00100100 01111000 00010101 00000110 00100110 10010000 00101101 10001010 01111111 10011110 01101010 00010000 00001111 10000011 10111110 10101011 00000000 11100111 10011001 11001101 11001000 01101001 10001000 11010010 01001001 00111100 00100010 01001011 00110111 00000011 00010111
/tmp/code.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(j,s,a,t){for(;gets(s);putchar(a?49:48)){t=strtol(s,s,2);a=0;for(j=t;j--;)a+=j*(j+1)==t*2;}} ^ /tmp/code.c: In function ‘main’: /tmp/code.c:1:1: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:1: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:1: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:1: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:20: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] main(j,s,a,t){for(;gets(s);putchar(a?49:48)){t=strtol(s,s,2);a=0;for(j=t;j--;)a+=j*(j+1)==t*2;}} ^ /tmp/code.c:1:28: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration] main(j,s,a,t){for(;gets(s);putchar(a?49:48)){t=strtol(s,s,2);a=0;for(j=t;j--;)a+=j*(j+1)==t*2;}} ^ /tmp/code.c:1:48: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration] main(j,s,a,t){for(;gets(s);putchar(a?49:48)){t=strtol(s,s,2);a=0;for(j=t;j--;)a+=j*(j+1)==t*2;}} ^ /tmp/ccpt2vaX.o: In function `main': code.c:(.text.startup+0x8): 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