Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==5696==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x00000051bc44 bp 0x7fffbe670110 sp 0x7fffbe6700c0 T0) ==5696==The signal is caused by a READ memory access. ==5696==Hint: address points to the zero page. #0 0x51bc43 (/out/package/dbc_memcheck+0x51bc43) #1 0x523539 (/out/package/dbc_memcheck+0x523539) #2 0x523a17 (/out/package/dbc_memcheck+0x523a17) #3 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #4 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #5 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #6 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #7 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #8 0x523a17 (/out/package/dbc_memcheck+0x523a17) #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
1000111011000001011101100110000011011100011101100010101100110000110100101101101101111011101110111000011100110001101010110111001111111101010011111111001001100000110001011101110010000001111000101001000100111111011010010101011110001001101101001100000000111110001111011001000110010110110111000111000101110011001111001001101010011011010001010001000011010111001011010000011010010000111100001101000001111011110010001111010001010010011101000011001100001000101011111001101011101011101111010011011100111010000110010001011111101111000000100100111111101101011000000000111100111000111100110111000010100001110000100001010001111011000010001001011011101010110100000011110001001110101110000001110101000110011010101011001010000101101011111000000101111111000000111101110010110110101101101011111001011101100110110101001110111000100111101001011000000110100001001001001101110100