Result

ERROR

Code [DL]

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

stdin

00000011
11100101
00000000
10110001
00010101
00100100
00110001
11111101
11101100
01101110
10011001
10011001
10111110
11000100
01110100
11100000
00011100
00101101
01100101
10010110
01011011
00100110
11000111
10001000
01000111
00000001
11100110
00000110
01001110
11001110
10001000
10111010
01111000
01000010
00001010
01101001
11011111
00001111
11010010
01101101
01010010
11011010
11100111
10101000
00010011
00110111
10101011
01100011
11100100
10000011

stdout

stderr

strace