Result

WA

Code [DL]

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

stdin

01111011
11000100
11110011
01001111
10001000
11111101
00000000
01101011
01111000
01011011
11111100
11001000
00010000
01011011
10011100
00001111
01011101
00000011
01101001
01011111
10000110
10010000
00110111
10000011
00111101
01111110
01011000
00101010
01001110
00001010
00010101
10011001
00100100
10110100
10111110
01110100
00000001
11101001
00000110
11010010
11101101
10101011
00000001
10010010
01000010
00011100
11100111
10000111
01010111
00101101

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),2)));}
 ^
/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),2)));}
              ^
/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),2)));}
                       ^
/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),2)));}
                                  ^
/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),2)));}
                                       ^
/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),2)));}
                                            ^
/tmp/ccjW01Zk.o: In function `main':
code.c:(.text.startup+0x5e): warning: the `gets' function is dangerous and should not be used.

strace