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