Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==57138==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000051ba3b bp 0x7fff32f52f90 sp 0x7fff32f52f70 T0) ==57138==The signal is caused by a READ memory access. ==57138==Hint: address points to the zero page. #0 0x51ba3a (/out/package/test_part1+0x51ba3a) #1 0x51d458 (/out/package/test_part1+0x51d458) #2 0x51d4d1 (/out/package/test_part1+0x51d4d1) #3 0x522c66 (/out/package/test_part1+0x522c66) #4 0x7f4cae25eb96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x41efb9 (/out/package/test_part1+0x41efb9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/test_part1+0x51ba3a) ==57138==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
1996 -906 1627 409 -257 -1112 -1467 1684 -1516 863 -1714 -1966 1636 626 -146 -255 -1667 -1883 771 190 -1661 617 -258 -1985 1980 -560 -1831 1106 1863 964 897 242 -414 -1931 -1754 -1042 742 -498 -1110 -1922 1562 -1259 665 396 1809 663 367 -181 978 -366 1128 918 1335 -236 -810 -363 737 -897 1434 -1238 1516 -348 -815 -1369 -985 -1642 601 1008 -692 476 -145 -1320 42 -1611 -285 -1372