Result

AC

Code [DL]

do disp(!rem((1+8*bin2dec(fgetl(0)))^.5,1))until 0

stdin

01100000
00100011
01111010
01011100
01111000
00001010
11111101
00101101
10111101
11010010
01100011
00111100
01001110
00000000
00001111
01001000
00000001
01111110
10010011
01101001
00101111
01011011
10111110
11000001
00001000
00000101
00010101
01110010
10010001
11010111
01000010
11000101
00000011
10101011
00011100
11010001
00000000
00000110
00100110
11100111
01111001
10010101
10011001
00011010
11100100
00010101
10011110
00100100
00110111
10001000

stdout

0
0
0
0
1
1
1
1
0
1
0
0
1
1
1
0
1
0
0
1
0
1
1
0
0
0
1
0
0
0
1
0
1
1
1
0
1
1
0
1
0
0
1
0
0
1
0
1
1
1

stderr

octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
error: base2dec: S must be a string or cellstring
error: execution exception in /volume/CODE

strace