Result

WA

Code [DL]

char s[9];main(i,j,k,t){for(;gets(s);){t=0;for(j=0;j<8;j++)t=t*2+s[j]-48;printf("%s %d\n",s,t);}}

stdin

10001000
11010101
00011100
10110100
11010001
01010000
00000000
00010111
01010110
11100111
00000101
00000110
01111000
11010010
10011001
00011001
00111101
01101001
00001111
00001010
11000000
00110110
01001110
00101000
00110111
01101100
01000010
01011011
10101011
00010101
11101010
00000011
01010011
00101101
10010110
01000001
00100100
11111101
00000010
01111111
10001100
01001000
10111110
01000111
01111011
10101011
00101101
11110111
00000001
00001100

stdout

10001000 136
11010101 213
00011100 28
10110100 180
11010001 209
01010000 80
00000000 0
00010111 23
01010110 86
11100111 231
00000101 5
00000110 6
01111000 120
11010010 210
10011001 153
00011001 25
00111101 61
01101001 105
00001111 15
00001010 10
11000000 192
00110110 54
01001110 78
00101000 40
00110111 55
01101100 108
01000010 66
01011011 91
10101011 171
00010101 21
11101010 234
00000011 3
01010011 83
00101101 45
10010110 150
01000001 65
00100100 36
11111101 253
00000010 2
01111111 127
10001100 140
01001000 72
10111110 190
01000111 71
01111011 123
10101011 171
00101101 45
11110111 247
00000001 1
00001100 12

stderr

/tmp/code.c:1:11: warning: return type defaults to ‘int’ [-Wimplicit-int]
 char s[9];main(i,j,k,t){for(;gets(s);){t=0;for(j=0;j<8;j++)t=t*2+s[j]-48;printf("%s %d\n",s,t);}}
           ^
/tmp/code.c: In function ‘main’:
/tmp/code.c:1:11: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:11: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:11: warning: type of ‘k’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:11: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int]
/tmp/code.c:1:30: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 char s[9];main(i,j,k,t){for(;gets(s);){t=0;for(j=0;j<8;j++)t=t*2+s[j]-48;printf("%s %d\n",s,t);}}
                              ^
/tmp/code.c:1:74: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 char s[9];main(i,j,k,t){for(;gets(s);){t=0;for(j=0;j<8;j++)t=t*2+s[j]-48;printf("%s %d\n",s,t);}}
                                                                          ^
/tmp/code.c:1:74: warning: incompatible implicit declaration of built-in function ‘printf’
/tmp/code.c:1:74: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
/tmp/ccCSZSad.o: In function `main':
code.c:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.

strace