Result

WA

Code [DL]

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

stdin

01010101
00000001
00100100
00000110
10011001
10001001
01001000
10001000
11000000
00011111
00110111
01011100
01110101
00111111
01101100
11111101
00110110
10101101
10011111
11010010
00000011
00001001
01010001
11000010
01011011
00111001
11100111
00001010
00011010
00000001
00011100
00101101
00001111
01011011
01111010
00101110
01000010
10000101
00010101
01111000
01011111
10111110
01001110
11011100
10111000
01101001
11000110
00000000
10110001
10101011

stdout

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 s;main(j){for(;gets(&s);puts(&a))for(a=48,s=strtol(&s,&j,2);--j;)a+=j*j-j==s*2;}
 ^
/tmp/code.c:1:1: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
/tmp/code.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
 s;main(j){for(;gets(&s);puts(&a))for(a=48,s=strtol(&s,&j,2);--j;)a+=j*j-j==s*2;}
   ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:3: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:16: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 s;main(j){for(;gets(&s);puts(&a))for(a=48,s=strtol(&s,&j,2);--j;)a+=j*j-j==s*2;}
                ^
/tmp/code.c:1:25: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 s;main(j){for(;gets(&s);puts(&a))for(a=48,s=strtol(&s,&j,2);--j;)a+=j*j-j==s*2;}
                         ^
/tmp/code.c:1:31: error: ‘a’ undeclared (first use in this function)
 s;main(j){for(;gets(&s);puts(&a))for(a=48,s=strtol(&s,&j,2);--j;)a+=j*j-j==s*2;}
                               ^
/tmp/code.c:1:31: note: each undeclared identifier is reported only once for each function it appears in
/tmp/code.c:1:45: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 s;main(j){for(;gets(&s);puts(&a))for(a=48,s=strtol(&s,&j,2);--j;)a+=j*j-j==s*2;}
                                             ^
/tmp/code.c:1:42: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 s;main(j){for(;gets(&s);puts(&a))for(a=48,s=strtol(&s,&j,2);--j;)a+=j*j-j==s*2;}
                                          ^
/home/esolang/bin/c-gcc: line 6: /tmp/code: No such file or directory
rm: cannot remove '/tmp/code': No such file or directory

strace