Result

WA

Code [DL]

main(s){for(;gets(&s);putchar(48+fmod(sqrt(strtol(&s,0,2)*8+1),1)));}

stdin

10101000
11111001
01101001
01010010
00110011
00000010
01101010
10111110
01000010
11100111
00010101
01111000
10011001
11111000
01010001
00101000
01100001
00000110
00110111
00011100
01011000
00100100
00000011
00100100
10101011
11010111
01101100
00100010
10010111
00001111
00101101
10001011
10001000
01110100
11111101
01011011
10010001
00100011
11010011
10100111
01001110
00010010
00001010
11110100
00000001
00000000
11111101
00010100
11010010
11001100

stdout

stderr

/tmp/code.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(s){for(;gets(&s);putchar(48+fmod(sqrt(strtol(&s,0,2)*8+1),1)));}
 ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:1: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:14: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 main(s){for(;gets(&s);putchar(48+fmod(sqrt(strtol(&s,0,2)*8+1),1)));}
              ^
/tmp/code.c:1:23: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 main(s){for(;gets(&s);putchar(48+fmod(sqrt(strtol(&s,0,2)*8+1),1)));}
                       ^
/tmp/code.c:1:34: warning: implicit declaration of function ‘fmod’ [-Wimplicit-function-declaration]
 main(s){for(;gets(&s);putchar(48+fmod(sqrt(strtol(&s,0,2)*8+1),1)));}
                                  ^
/tmp/code.c:1:34: warning: incompatible implicit declaration of built-in function ‘fmod’
/tmp/code.c:1:34: note: include ‘<math.h>’ or provide a declaration of ‘fmod’
/tmp/code.c:1:39: warning: implicit declaration of function ‘sqrt’ [-Wimplicit-function-declaration]
 main(s){for(;gets(&s);putchar(48+fmod(sqrt(strtol(&s,0,2)*8+1),1)));}
                                       ^
/tmp/code.c:1:39: warning: incompatible implicit declaration of built-in function ‘sqrt’
/tmp/code.c:1:39: note: include ‘<math.h>’ or provide a declaration of ‘sqrt’
/tmp/code.c:1:44: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 main(s){for(;gets(&s);putchar(48+fmod(sqrt(strtol(&s,0,2)*8+1),1)));}
                                            ^
/tmp/ccNtDWl1.o: In function `main':
code.c:(.text.startup+0x5e): warning: the `gets' function is dangerous and should not be used.

strace