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