by@cookies146
WA
s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=--j*j==s*2;}
01110011 00010101 01101001 10101011 00000011 11011101 00001111 10000101 01010100 00101111 01000010 01111000 00010000 00011100 00100000 00000000 00000001 00000100 01001110 01011011 11010000 10011001 10011100 00100100 10100110 01000010 11111110 10001000 10100101 00000110 10111111 10011101 00100001 00101101 10110011 10010000 00000110 00110111 11100111 10010011 11100001 10111110 10111010 00001010 11010010 00101010 01000111 00101011 11111101 01011110
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 � 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
/tmp/code.c:1:1: warning: data definition has no type or storage class s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=--j*j==s*2;} ^ /tmp/code.c:1:1: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] /tmp/code.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int] s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=--j*j==s*2;} ^ /tmp/code.c: In function ‘main’: /tmp/code.c:1:3: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:3: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] /tmp/code.c:1:18: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=--j*j==s*2;} ^ /tmp/code.c:1:27: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=--j*j==s*2;} ^ /tmp/code.c:1:42: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration] s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=--j*j==s*2;} ^ /tmp/code.c:1:69: warning: operation on ‘j’ may be undefined [-Wsequence-point] s;main(j,a){for(;gets(&s);puts(&a))for(s=strtol(&s,&j,2),a=48;j;)a+=--j*j==s*2;} ^ /tmp/ccfMxk7p.o: In function `main': code.c:(.text.startup+0x14): warning: the `gets' function is dangerous and should not be used.