Result

WA

Code [DL]

#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((double)y);
        printf("%d", z * z / y);
    }
    return 0;
}

stdin

11101011
01000010
00111001
10000110
11101100
00101101
00011100
00000011
00100110
00000001
01111101
00111100
11010010
00100001
11100100
10101011
11100111
00000000
00011110
11110011
00010101
01001110
00101101
01111110
01100011
00111101
00001010
01101001
00110111
10001000
10111110
10011001
01011011
01110100
01010110
01011011
10111111
01100100
10001111
01010001
01111000
10100111
00100011
00001111
10010011
00100100
11111101
00101000
00000110
10010110

stdout

stderr

/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/ccM6t9kx.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

strace