Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==5820==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x00000051bc44 bp 0x7ffcc55481d0 sp 0x7ffcc5548180 T0) ==5820==The signal is caused by a READ memory access. ==5820==Hint: address points to the zero page. #0 0x51bc43 (/out/package/dbc_memcheck+0x51bc43) #1 0x523539 (/out/package/dbc_memcheck+0x523539) #2 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #3 0x523a17 (/out/package/dbc_memcheck+0x523a17) #4 0x523a17 (/out/package/dbc_memcheck+0x523a17) #5 0x5239d9 (/out/package/dbc_memcheck+0x5239d9) #6 0x523a17 (/out/package/dbc_memcheck+0x523a17) #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
1100011100000001011000100001110010010101010011000010011101001001100100000010100111111011010001011001110110001100010011110110111100001011111001001011010111110110100101000111000001111010011011011110101110000001000101000110011101000100110111011101010111110011101101010000011011011000110100101101111011010111000000010110010100101110100100001000011011111011000000001100000001011101100101101101000000001101000011101011000011101100110111111111110111111010011101111010001001111001111100001001011100001110111010101101010011011111110101011010011000111101110101101100011110010011101011010011011111010110111110000101101110100000110110111010101000101001000100100000010110010110000111100011111110101101100100011101011010010011000010001111110111101100110000000010110111010111111111110110011101011111000101011001110000010111100111000010110110010011001100010001110101001101000111011111110011100111011111100110011001100010101001100001101101010001111000101101110110011100011111111011011100101000100000110101011111110011000110010100001010110000