Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==6094==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x00000051bc44 bp 0x7ffe0dd31130 sp 0x7ffe0dd310e0 T0) ==6094==The signal is caused by a READ memory access. ==6094==Hint: address points to the zero page. #0 0x51bc43 (/out/package/dbc_memcheck+0x51bc43) #1 0x523539 (/out/package/dbc_memcheck+0x523539) #2 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #3 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #4 0x523a17 (/out/package/dbc_memcheck+0x523a17) #5 0x523a17 (/out/package/dbc_memcheck+0x523a17) #6 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #7 0x523a17 (/out/package/dbc_memcheck+0x523a17) #8 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #9 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #10 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #11 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #12 0x5239d9 (/out/package/dbc_memcheck+0
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
JOJ Answer
1010001000000001001001011111110001100001010100111110111011100100011100101110011100110100111011011100110001011110000110010001011010100010000000101110101110101011000101110100000010111010100011010000010111010101110101011000110011100101101100010011101100100000001000010010000010111001010101101100010011110010101100100110101010010001000111110010011000011111000101101011101011100111011101001100101001111111111000010110011000001011111011111010001110110110101010110110001100000101011110111001110110010100000011100001101110110111101001000111100100100101010100110000011010101001010000001011011000010000101000101011111101001110111011001011000000000001111110101110011100000101111010111110011101101110000011101111101101101110101101101111000100110111000111101000110011100010100010011110011000101100111111100001111110110111111101001000101101001110001000001010000101011011011001010100000100101001100111010110101100001111010010101011111101110111000011010000000001001110000101000010100101011010010100110000110110110101000100000101111101100111