Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==58479==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000051b8ab bp 0x7ffc71a67c70 sp 0x7ffc71a67c60 T0) ==58479==The signal is caused by a READ memory access. ==58479==Hint: address points to the zero page. #0 0x51b8aa (/out/package/test_part1+0x51b8aa) #1 0x51db90 (/out/package/test_part1+0x51db90) #2 0x51dbd4 (/out/package/test_part1+0x51dbd4) #3 0x522cc4 (/out/package/test_part1+0x522cc4) #4 0x7f877d12fb96 (/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+0x51b8aa) ==58479==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
1683 -1316 -114 1320 -1330 692 -1780 640 82 -1143 -395 -411 -1711 -1033 -1342 1260 1781 -43 1247 -976 -491 -339 -1992 -795 -1324 -496 -735 1663 -1322 833 -1238 405 115 -1872 -1058 1270 -626 -759 1458 683 -90 802 1023 -869 1590 145 -207 1808 -1373 -528 -543 -1772 -952 165 -645 -1772 -953 374 948 -1146 -1072 1314 692 -468 -189 -1829 -406 213 651 -1295 1354 863 -1001 -575 1770 -134 -155 178 531 -258 -257 135 831 -379 -395 -268 -1728 -441 723 605 1452 -167 1171 -1539 667 1215 -1139 506 1126 1200 -1160 377 1127 1930 -1299 -1668 479 696 1687 -148 -1133 -1635 -310 1374 424 -668 -1190 -261 1569 56 -784 360 -944 1499 707 867 1192 699 1294 -418 1902 798 1753 605 1180 -1955 -86 -1993 -1564 1311 -1459 -353 736 330 894 -9 1620 -451 -286 1977 1039 -1461 1925 -1898 -1350 1339 -157 -253 379 -687 -1527 832 -1529 1780 223 1876 -1555 586 -125 153 1052 -74 -30 1683 -1318 -1234 1851 -810 1374 1160 -515 1522 1476 1033 121 1822 722 1104 -924 1615 866 1281 -1231 -1788 1101 -352 1483 258 682 1368 -1173 1756 1635 -1480 841 -600 -692