by@cookies146
WA
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;}
01111000 00011100 00010001 00001111 11100101 10111110 11111101 00101101 00010101 00100100 01000010 10001000 11111111 11111000 01000011 00001010 01011011 11111010 00000011 10011001 11010010 00010000 01001110 00000110 00011001 00100111 10101011 10010010 01001011 11010111 11101101 01101001 10001001 00111101 11000000 00000101 00000000 11100111 01101001 01111010 01111111 11101011 10000011 10001111 01111000 00110111 00001011 11000100 00000001 11000111
1 1 0 1 0 1 1 1 1 1 1 1 0 0 0 1 1 0 1 1 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 1 1 0 0 0 0
/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/cc23B3Bo.o: In function `main': code.c:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.