Result

ERROR

Code [DL]

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

stdin

10011100
11011111
01011011
00010000
10111110
00000110
00100101
10111110
00000011
00100100
10001000
00111010
00001010
10011001
01011100
01101111
10110001
01111111
01101001
10100000
01000010
00110111
00001111
11011110
00101101
01001110
01100101
00010101
01110101
10111100
10001011
00111100
01110000
11111101
11001100
10100001
01111000
00000001
11100111
00000000
11101101
11000000
01000010
10111010
10100100
10101011
00011100
01101000
10001010
11010010

stdout

stderr

strace