Result

WA

Code [DL]

main() {
    char s[8];
    for(int i=0;i<50;i++) {
        gets(s);
        int x=0;
        for(int j=0; j<8;j++)
        {
         x *= 2; x += (s[i]=='1');
        }
        printf("%d", x);
    }
}

stdin

01111010
01100110
00001111
00010101
00011010
11010010
10100000
10001000
10111110
01001110
11000010
11111101
00000000
00111100
00000011
00100110
00000110
00010010
01110110
00001010
10110101
00110111
01111000
10011001
10011111
11010010
01101001
11000000
10101010
00110011
00111000
11001101
00100100
10111101
01101010
00011100
00010111
11111000
11100111
01000111
01011011
11110011
11111001
01100111
00101101
11010010
00000001
10101011
11110100
01000010

stdout

02550255255000000000000000000000000000000000000000000000

stderr

/tmp/code.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main() {
 ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:4:9: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
         gets(s);
         ^
/tmp/code.c:10:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
         printf("%d", x);
         ^
/tmp/code.c:10:9: warning: incompatible implicit declaration of built-in function ‘printf’
/tmp/code.c:10:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
cc1: warning: iteration 8u invokes undefined behavior [-Waggressive-loop-optimizations]
/tmp/code.c:3:5: note: containing loop
     for(int i=0;i<50;i++) {
     ^
/tmp/ccyEI07y.o: In function `main':
code.c:(.text.startup+0x26): warning: the `gets' function is dangerous and should not be used.

strace