Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==5678==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x00000051bd64 bp 0x7fff3f8220f0 sp 0x7fff3f8220a0 T0) ==5678==The signal is caused by a READ memory access. ==5678==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 0x523a17 (/out/package/dbc_memcheck+0x523a17) #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
11110010101111100000111010001011010100111000001011110111001110111110001111011101011010011000001010010111001010001111011001101100011011011110011001110111101101000110101011010101000101001100000100111010001010100111101111111000111010011011110111010010100110101011100001110111101111110101000010010111010001101001111011001111010011100100110100001010001100111001110000100001110110111011101111111100110111101111111111101000111101001000101111110110001011101001001010111010010111000100011101110100011101000011011101110100000001010000100000010011001101000110000101110010100010010000000111011101011101101011101011000101011001101101110110011100000000011101101101010