Result

WA

Code [DL]

char s[9];main(j,a,t){for(;gets(s);){t=strtol(s,s,2);printf("%d\n",t);}}

stdin

00001010
00011101
00100100
01001110
00000000
00110111
10100110
01111000
01001101
00101010
10111110
11100111
11011111
01001011
10000000
00000001
01101110
11010011
01101001
01001111
01101001
00101101
00100011
11111101
01101101
10100001
10101011
00101111
00000110
00010101
01111110
00000011
11001111
10001101
00101011
01100010
00011100
01011011
00100100
00001111
10001000
01000010
01110011
01000110
00001110
01011100
11010010
10011001
11000001
00010000

stdout

10
29
36
78
0
55
166
120
77
42
190
231
223
75
128
1
110
211
105
79
105
45
35
253
109
161
171
47
6
21
126
3
207
141
43
98
28
91
36
15
136
66
115
70
14
92
210
153
193
16

stderr

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

strace