Result

WA

Code [DL]

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

stdin

00011100
01101001
00100100
01011111
00000001
11100111
11110101
10011001
10001000
10000011
11110011
00000010
10110001
10101111
11011100
10010010
11110100
10101011
00001111
11010010
10101001
11011011
00000110
00110111
00010101
01010101
11101110
01101011
00110001
01000010
10111011
01111000
11111101
00001010
00000011
11100000
01000110
00000000
11010110
01100001
00010101
00101011
00000011
10100111
01000011
01010001
01011011
01001110
00101101
10111110

stdout

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

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 s[9];main(j,a,t){for(;gets(s);puts(&a))for(j=t=strtol(s,0,2),a=48;j+1;)a+=j*(j--)==t*2;}
 ^
/tmp/code.c:1:1: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
/tmp/code.c:1:6: warning: return type defaults to ‘int’ [-Wimplicit-int]
 s[9];main(j,a,t){for(;gets(s);puts(&a))for(j=t=strtol(s,0,2),a=48;j+1;)a+=j*(j--)==t*2;}
      ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:6: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:6: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:6: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:23: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 s[9];main(j,a,t){for(;gets(s);puts(&a))for(j=t=strtol(s,0,2),a=48;j+1;)a+=j*(j--)==t*2;}
                       ^
/tmp/code.c:1:31: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 s[9];main(j,a,t){for(;gets(s);puts(&a))for(j=t=strtol(s,0,2),a=48;j+1;)a+=j*(j--)==t*2;}
                               ^
/tmp/code.c:1:48: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 s[9];main(j,a,t){for(;gets(s);puts(&a))for(j=t=strtol(s,0,2),a=48;j+1;)a+=j*(j--)==t*2;}
                                                ^
/tmp/code.c:1:79: warning: operation on ‘j’ may be undefined [-Wsequence-point]
 s[9];main(j,a,t){for(;gets(s);puts(&a))for(j=t=strtol(s,0,2),a=48;j+1;)a+=j*(j--)==t*2;}
                                                                               ^
/tmp/ccuMg8dx.o: In function `main':
code.c:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.

strace