by@satos___jp
WA
main(j,s,a){for(;gets(&s);puts(&a))for(s=strtol(&s,0,j=a=48);--j;)a+=j*j-j==s*2;}
00111111 01110000 11100111 01011101 11011110 11001011 10001000 00001010 10001110 00001111 11000101 00101101 10011001 00111110 00000011 00010001 10001011 01101001 10011110 11010010 00100000 01001100 00000110 11100000 01011010 10010010 01000010 00100100 01110001 10111110 10101011 11010111 00000000 00110111 00000001 01111000 10110100 00101000 11111001 01011011 10010110 00111001 01001110 01000110 11111101 00011100 00010101 11111101 01110011 10011001
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
/tmp/code.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(j,s,a){for(;gets(&s);puts(&a))for(s=strtol(&s,0,j=a=48);--j;)a+=j*j-j==s*2;} ^ /tmp/code.c: In function ‘main’: /tmp/code.c:1:1: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:1: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:1: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:18: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] main(j,s,a){for(;gets(&s);puts(&a))for(s=strtol(&s,0,j=a=48);--j;)a+=j*j-j==s*2;} ^ /tmp/code.c:1:27: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] main(j,s,a){for(;gets(&s);puts(&a))for(s=strtol(&s,0,j=a=48);--j;)a+=j*j-j==s*2;} ^ /tmp/code.c:1:42: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration] main(j,s,a){for(;gets(&s);puts(&a))for(s=strtol(&s,0,j=a=48);--j;)a+=j*j-j==s*2;} ^ /tmp/ccSicVPB.o: In function `main': code.c:(.text.startup+0x14): warning: the `gets' function is dangerous and should not be used.