Result

ERROR

Code [DL]

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

stdin

10110100
00010101
10001101
11000100
00010101
11101011
00100100
00001010
01001110
00000100
01001001
00000110
01111000
11110001
01101001
11010010
10000110
01110010
11010111
00000000
00000011
00111001
01000010
10101011
00000010
10001000
00101101
11011101
01000110
10110000
10101000
10111110
00001111
11100111
10011001
01010111
01011000
01110001
11001101
11100110
00000001
01101100
00110111
00011100
11101111
11111101
00110010
01111111
01101001
01011011

stdout

stderr

strace