Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==5954==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x00000051bd64 bp 0x7ffca9cf01b0 sp 0x7ffca9cf0160 T0) ==5954==The signal is caused by a READ memory access. ==5954==Hint: address points to the zero page. #0 0x51bd63 (/out/package/dbc_memcheck+0x51bd63) #1 0x523628 (/out/package/dbc_memcheck+0x523628) #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 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
1011100001010111110101010011010010111101011111000010110101100101100111011110101011101011010000111100010001101100111100011101101110001011111000110110111100100011010011111100001001001000100111110000011110111101001011010011010101000000001001100000100011010101100101101011001101000110011000111000000001111000011000111101010101110111111111001111111010101010100011111100100010001110110111101000010101011001110101111101010010110011110000011001100010101111010100100011011001111011100000011001111110001110010111010011110100000001111000111101000101100101110111110111001111111011010111001100101110000101111011100110111010101111000100101101101100010001011001011011001010011111000000100100101011100111110001101101010000000100000111011110000000010011011100111111000000101010101110110011101101100100101010000111011111110110010000111101011010101010000110100111000000101111101010111010001011101111110000010111011011110011011011110011110110110011011011100111101011111111110100101010001101001111011101011010101100000000000010001001010101111000