by@cookies146
WA
s[9];main(j,a,t){for(;gets(s);puts(&a))for(t=strtol(s,0,2),j=a=48;j;j--)a+=j*j+j==t*2;}
10011110 11110110 00000001 01011011 00000011 10011001 11101110 00000110 11001000 00101000 10101011 11100111 01001100 00010100 00001010 00100011 01001110 10001000 00100010 00110111 10011011 01001111 00010101 10111111 00010101 00011001 00011100 01101001 10100110 11010110 10110100 01000010 00101101 00000000 01000001 10100000 10011001 00100100 11010010 10111110 11111101 01100000 10100100 10110010 01000100 01010010 00001111 00101010 10000111 01111000
0 0 1 1 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 0 0 1 0 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;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;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;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;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;j--)a+=j*j+j==t*2;} ^ /tmp/ccmc1Us6.o: In function `main': code.c:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.