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;}
10000111 00010100 10111110 10011001 00000011 00101100 00000001 01101001 01100001 11001011 11111101 00110001 01000010 10000001 11001101 00110110 01000010 01001110 11010110 11010010 00010101 00100100 00101101 10001110 10100100 10010100 10101011 00110111 10001100 00011100 11000110 00000110 10100101 11100111 01000011 10001000 01011011 10001010 11011010 10100111 00000000 01111000 11000100 00001010 10001011 00001111 01100110 00101111 01101010 00010101
0 0 1 1 1 0 1 1 0 0 1 0 1 0 0 0 1 1 0 1 1 1 1 0 0 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 2 1 0 1 0 1 0 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--;)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/ccuqnhPF.o: In function `main': code.c:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.