by@moratorium08
WA
#include<stdio.h> #include<math.h> int main() { char s[8]; for(int i=0;i<50;i++) { scanf("%s", s); int x=0; for(int j=0; j<8;j++) { x *= 2; x += (s[j]=='1'); } int y = 1 + 8 * x; int z =(int)sqrt(y); printf("%d", z * z / y); } return 0; }
10011011 01110110 01000010 00001010 11001101 01111000 01010111 01011001 00101101 01010000 10101011 10111110 10000000 00011100 00010101 10001011 00001101 00000000 11101100 00001111 11100111 00000110 11000000 00100100 11111101 10111110 11011111 01101001 10111011 10101111 10001000 11110111 00010111 00000001 00110111 00011010 00000011 01001110 11101101 01101110 11010010 10011001 11100001 10001100 11100110 10010001 10101010 11100111 00001011 01011011
/tmp/code.c: In function ‘main’: /tmp/code.c:6:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s); ^ /tmp/ccyUOHUY.o: In function `main': code.c:(.text.startup+0xae): undefined reference to `sqrt' collect2: error: ld returned 1 exit status /home/esolang/bin/c-gcc: line 6: /tmp/code: No such file or directory rm: cannot remove '/tmp/code': No such file or directory