Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==5715==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x00000051bd64 bp 0x7ffdb5fbf790 sp 0x7ffdb5fbf740 T0) ==5715==The signal is caused by a READ memory access. ==5715==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
1100110100011010010100111100101110011010100010100000100000100110110011111011010001001111110000110101111111111101101110010101010011100010011011010111100110101000110100110110110000001111100000101110111000101011100010101001011011111001000000111011101100100010101010101110001101110110011100000000110001101111000010011010100111011111111011101110011010011101000001110001111110010001101111100101111111101010110100111110111100011101111111000111000110010111000011011011111011110010110010010011111001111001101100010111011001100011001110100111111110011001111110100110010101110011110011111100011101100011001111001011101010000011100111010111110011001111100100111110101111010110001010110011110100101101111011001100110010001001100110000101010011100010001000111111001011101001000001010001111001110101101100101100110001110001001001110010101000001110010111010011010110111100011111111001011010001101111101111111101111101001101100111100101010000111110110101000111101111010101101001101100011100100110111001011001110101011101010000111111000101100