Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==57143==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000051b8ab bp 0x7ffcb60a3b10 sp 0x7ffcb60a3b00 T0) ==57143==The signal is caused by a READ memory access. ==57143==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 0x7ff943723b96 (/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) ==57143==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
806 -1511 -1442 -1432 -604 -894 -431 -1636 731 -1814 -953 -1601 449 -657 1279 -1966 1165 1943 -1266 471 -919 -1701 -1988 126 874 -769 -853 -38 388 -1034 1414 639 -796 -475 1336 -68 100 -1455 -1718 778 -978 1210 820 291 -995 1295 -809 -285 -179 793 111 -267 -554 -1735 -1527 -1474 -494 1911 -388 -1521 489 945 -935 1771 259 -1889 51 20 785 308 -1604 -1884 -1735 -1363 122 342 1886 -1036 122 1916 7 500 -1401 -684 -1280 -926 -503 -1766 -1583 129 1002 1888 -225 212 -1349 -518 1787 -326 -1789 -503 908 165 1149 474 -212 1240 350 1621 1056 -1482 937 229 1629 -1837 55 -1323 -1438 -17 -1755 -1965 -1081 1254 -148 1524 -1987 593 -187 -1821 894 724 1044 1863 1841 1765 1303 1192 -1113 -1761 628 1579 -623 -1856 -1497 -639 1255 -1846 -1949 1004 -1366 -1156 -1306 435 524 1673 -967 1459 -85 -594 -1880 751 -1305 -499 621 -1198 289 -1772 -959 1646 545 -1111 1413 -460 -1155 -1564 1841 -1212 701 -188 854 -1783 1108 -1154 74 1604 -249 1511 947 -465 -149 165 -1310 -279 -1891 -732 645 586 1479 1283 -1471 924 1494 585 1690 -1013 -798 -