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