Result

WA

Code [DL]

main(s,j,a,t){for(;gets(s);puts(&a))for(t=strtol(s,0,2),j=a=48;--j;)a+=j*j-j==t*2;}

stdin

11010010
00001111
01101011
10001000
01111100
01000101
00100100
10001111
10011101
01001111
01010000
00110111
11111101
10101011
00101101
11111101
01111110
01110000
00000000
10011001
00011100
00110011
01101001
10001001
01001110
00000001
00011000
11010111
01111000
01011001
00001010
10000111
01100111
00010101
10111110
01101000
00000011
01010110
11100110
01011011
11010101
11101001
00110110
10111111
01000000
01111010
00000110
10111110
01000010
11100111

stdout

stderr

/tmp/code.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(s,j,a,t){for(;gets(s);puts(&a))for(t=strtol(s,0,2),j=a=48;--j;)a+=j*j-j==t*2;}
 ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:1: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:1: warning: type of ‘j’ 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(s,j,a,t){for(;gets(s);puts(&a))for(t=strtol(s,0,2),j=a=48;--j;)a+=j*j-j==t*2;}
                    ^
/tmp/code.c:1:28: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 main(s,j,a,t){for(;gets(s);puts(&a))for(t=strtol(s,0,2),j=a=48;--j;)a+=j*j-j==t*2;}
                            ^
/tmp/code.c:1:43: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 main(s,j,a,t){for(;gets(s);puts(&a))for(t=strtol(s,0,2),j=a=48;--j;)a+=j*j-j==t*2;}
                                           ^
/tmp/ccEsbFLj.o: In function `main':
code.c:(.text.startup+0x10): 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