Result

WA

Code [DL]

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

stdin

01010111
01001101
10111100
01001100
10100000
00000000
00111100
10011111
00000011
00010110
01000011
10001000
11111110
01111110
10111110
01101001
01011011
11101110
00000010
11011010
00001111
11100100
00100100
11011101
00001010
10111011
11011111
00011101
11010010
10011001
00000001
01101011
00110111
01011111
00101101
00010100
00010101
01100100
01011011
11100111
01011110
00011100
11111101
00000110
11011011
01000010
00001111
10101011
01001110
01111000

stdout

87
77
188
76
160
0
60
159
3
22
67
136
254
126
190
105
91
238
2
218
15
228
36
221
10
187
223
29
210
153
1
107
55
95
45
20
21
100
91
231
94
28
253
6
219
66
15
171
78
120

stderr

/tmp/code.c:1:11: warning: return type defaults to ‘int’ [-Wimplicit-int]
 char s[9];main(j,a,t){for(;~scanf("%s",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:29: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 char s[9];main(j,a,t){for(;~scanf("%s",s);){t=strtol(s,s,2);printf("%d\n",t);}}
                             ^
/tmp/code.c:1:29: warning: incompatible implicit declaration of built-in function ‘scanf’
/tmp/code.c:1:29: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
/tmp/code.c:1:47: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration]
 char s[9];main(j,a,t){for(;~scanf("%s",s);){t=strtol(s,s,2);printf("%d\n",t);}}
                                               ^
/tmp/code.c:1:61: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 char s[9];main(j,a,t){for(;~scanf("%s",s);){t=strtol(s,s,2);printf("%d\n",t);}}
                                                             ^
/tmp/code.c:1:61: warning: incompatible implicit declaration of built-in function ‘printf’
/tmp/code.c:1:61: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

strace