Result

AC

Code [DL]

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

stdin

10001000
01000010
01111000
01110100
11111010
00001010
01000001
01010101
10011001
10111110
00110111
10001011
00001111
11111101
11101110
10100000
01111000
10111111
00000011
11111100
00000000
00110111
11100111
10110001
00001011
00000110
00110100
10011100
00100100
11010101
00000001
00010101
11000010
00011100
00010010
00101101
00000010
11100011
11010010
01110101
01101001
01011011
10100101
01100010
00111011
01001110
00010011
10101011
01100110
11011111

stdout

1
1
1
0
0
1
0
0
1
1
1
0
1
1
0
0
1
0
1
0
1
1
1
0
0
1
0
0
1
0
1
1
0
1
0
1
0
0
1
0
1
1
0
0
0
1
0
1
0
0

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=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,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=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:3: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:18: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=j--*j==s*2;}
                  ^
/tmp/code.c:1:27: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=j--*j==s*2;}
                           ^
/tmp/code.c:1:42: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=j--*j==s*2;}
                                          ^
/tmp/code.c:1:70: warning: operation on ‘j’ may be undefined [-Wsequence-point]
 s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=j--*j==s*2;}
                                                                      ^
/tmp/ccDex5Ji.o: In function `main':
code.c:(.text.startup+0x14): warning: the `gets' function is dangerous and should not be used.

strace