by@cookies146
WA
main(j,s,a){for(;s=strtol(gets(&s),0,2);puts(&a))for(j=a=48;--j;)a+=j*j-j==s*2;}
00010101 10011001 00101101 00111111 00111100 01111000 11001110 01111101 01001110 00010100 10000111 00110101 00000001 00001111 00010110 00011111 11101101 01001111 10001000 00100100 10111110 10101011 10110101 01101001 10100110 01011011 00001010 00011101 01110000 00011100 11001011 10000101 01000010 11010010 11100111 00110111 00010010 01001100 01101001 01101111 00000000 00000110 00100100 01111001 11111101 11111110 11001000 00000011 01000011 11100101
/tmp/code.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(j,s,a){for(;s=strtol(gets(&s),0,2);puts(&a))for(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:20: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration] main(j,s,a){for(;s=strtol(gets(&s),0,2);puts(&a))for(j=a=48;--j;)a+=j*j-j==s*2;} ^ /tmp/code.c:1:27: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] main(j,s,a){for(;s=strtol(gets(&s),0,2);puts(&a))for(j=a=48;--j;)a+=j*j-j==s*2;} ^ /tmp/code.c:1:1: warning: suggest parentheses around assignment used as truth value [-Wparentheses] main(j,s,a){for(;s=strtol(gets(&s),0,2);puts(&a))for(j=a=48;--j;)a+=j*j-j==s*2;} ^ /tmp/code.c:1:41: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] main(j,s,a){for(;s=strtol(gets(&s),0,2);puts(&a))for(j=a=48;--j;)a+=j*j-j==s*2;} ^ /tmp/ccjL99eS.o: In function `main': code.c:(.text.startup+0x18): warning: the `gets' function is dangerous and should not be used. /home/esolang/bin/c-gcc: line 6: 13 Done cat - 14 Segmentation fault (core dumped) | /tmp/code