by@cookies146
WA
s[9];main(j,a,t){for(;gets(s);puts(&a))for(t=strtol(s,0,2),j=a=48;j--;)a+=j*j-j==t*2;}
00101111 11111101 10100100 01010000 11010010 01101101 00000110 00100101 00111111 00001111 00101101 01100101 00000001 11100111 01111000 00000011 00010101 00001010 11111111 01101001 00001000 01000010 10011001 10000111 11010100 01001110 01011011 11101010 00110000 01011011 00000000 10110110 01100010 01101000 01011111 00010011 01111110 00100100 01100011 10001000 01111001 10101011 11111101 11000000 10111000 11000110 10111110 00011100 00110110 00110111
0 1 0 0 1 0 1 0 0 1 1 0 1 1 1 1 1 1 0 1 0 1 1 0 0 1 1 0 0 1 2 0 0 0 0 0 0 1 0 1 0 1 1 0 0 0 1 1 0 1
/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(t=strtol(s,0,2),j=a=48;j--;)a+=j*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(t=strtol(s,0,2),j=a=48;j--;)a+=j*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(t=strtol(s,0,2),j=a=48;j--;)a+=j*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(t=strtol(s,0,2),j=a=48;j--;)a+=j*j-j==t*2;} ^ /tmp/code.c:1:46: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration] s[9];main(j,a,t){for(;gets(s);puts(&a))for(t=strtol(s,0,2),j=a=48;j--;)a+=j*j-j==t*2;} ^ /tmp/ccY1Dx8k.o: In function `main': code.c:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.