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