Result

WA

Code [DL]

WITH RECURSIVE lines(x, line, remain) AS (
  SELECT 1, substr(v, 0, 8) AS line, substr(v, 9) AS remain FROM i
  UNION ALL
    SELECT x + 1, substr(remain, 0, 8) AS line, substr(remain, 9) AS remain
    FROM lines
    WHERE remain != ''
)
SELECT x, line FROM lines

stdin

00010000
10001000
11100001
00010101
00100100
00010010
00110111
00011110
10100101
10110110
10011101
11101100
00000000
00000011
00101101
10010111
11100111
01111000
11110101
10110001
11011010
00000001
11111101
00000110
10000011
01011011
10011001
01000010
10001000
00011100
10101101
01101001
00101010
10010100
10101011
00001011
00001100
10000100
11011000
00001010
10111110
01000000
01001110
11010010
01101100
00001111
11110100
11101000
10101011
10010011

stdout

1|0001000
2|
100010
3|0
11100
4|01
0001
5|101
001
6|0100
00
7|10010
0
8|110111

9|0011110
10|1010010
11|
101101
12|0
10011
13|01
1110
14|100
000
15|0000
00
16|00011
0
17|101101

18|0010111
19|1110011
20|
011110
21|0
11110
22|01
1011
23|001
110
24|1010
00
25|00001
1
26|111101

27|0000110
28|1000001
29|
010110
30|1
10011
31|01
0100
32|010
100
33|1000
00
34|11100
1
35|101101

36|1101001
37|0010101
38|
100101
39|0
10101
40|11
0000
41|011
000
42|1100
10
43|00100
1
44|011000

45|0001010
46|1011111
47|
010000
48|0
01001
49|10
1101
50|010
011
51|1100
00
52|01111
1
53|110100

54|1101000
55|1010101
56|
100100
57|1

stderr

strace