Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==7247==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x00000051ad48 bp 0x7ffd9a032430 sp 0x7ffd9a031f10 T0) ==7247==The signal is caused by a READ memory access. ==7247==Hint: address points to the zero page. #0 0x51ad47 (/out/package/test_part1_new_memcheck+0x51ad47) #1 0x51ea5d (/out/package/test_part1_new_memcheck+0x51ea5d) #2 0x520a31 (/out/package/test_part1_new_memcheck+0x520a31) #3 0x7ff919c58b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #4 0x41da09 (/out/package/test_part1_new_memcheck+0x41da09) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/test_part1_new_memcheck+0x51ad47) ==7247==ABORTING
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
-1-1-1001-1-1-1
JOJ Answer
-1-1-1001-1-1-1 0011110101-1-111100-1-1 -1100-1-1-1001110-1 -1-1101-1-1-1 1000-110010-1-1-1 -1-1-1-1001000010110-1 1111-1-1-1010100-1-1 001000-1001000010-1-1-1 -1-1001000010-1-1-1 -11111-10010-1-1-1