Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==24341==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000051a824 bp 0x7ffda3527de0 sp 0x7ffda3527bc0 T0) ==24341==The signal is caused by a READ memory access. ==24341==Hint: address points to the zero page. #0 0x51a823 (/out/package/test_part1_new_memcheck+0x51a823) #1 0x51ce11 (/out/package/test_part1_new_memcheck+0x51ce11) #2 0x51f74f (/out/package/test_part1_new_memcheck+0x51f74f) #3 0x521de1 (/out/package/test_part1_new_memcheck+0x521de1) #4 0x7f9266548b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x41d979 (/out/package/test_part1_new_memcheck+0x41d979) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/test_part1_new_memcheck+0x51a823) ==24341==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
JOJ Answer
00000-1000000010001-1-1 010-1011-1-1-1 01100101101110-1-1-1 10011110-1-1-1-1-1 -1010-11100010110011-1 0-1-1-1-1 1-10-1-1-1 01-110-1-1-1 010-1011-1-1-1 01100101101110-1-1-1