Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==58471==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000051ba3b bp 0x7ffd69134e10 sp 0x7ffd69134df0 T0) ==58471==The signal is caused by a READ memory access. ==58471==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 0x7f5f1db2cb96 (/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) ==58471==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
-875 -119 631 -970 249 415 1179 -194 1023 -459 634 1109 -1878 1621 965 -1576 -1348 -1723 424 -1731 -166 659 -138 -921 -720 -1740 -1453 -1891 1461 518 565 446 -868 -1872 277 752 1201 -854 1545 -93 -36 471 -727 1250 -1323 -912 -324 -339 -1866 -1591 1797 -494 -1199 -83 1816 -1167 -977 735 -1878 1027 1801 -686 -99 -1571 694 -1113 -1655 1380 -1899 -2000 1360 1590 -102 -1866 1858 1594 -651 -548 1462 -1562 206 -1202 -308 -1785 1032 120 -426 1985 1411 962 -1490 654 1451 216 -1107 -893 1735 -662 -1753 1682 1234 -1855 646 1303 1000 -1670 -53 -260 -780 29 843 -1561 1035 1953 -1489 1401 1680 -1615 711 145 -116 -1309 -688 1317 -267 -1967 1314 743 -1487 -994 450 -1572 315 -333 -1510 1663 -1530 -215 1707 -1017 850 -34 -1909 1643 1024 1629 1347 -690 21 -1590 93 -1238 -524 -1177 119 -1798 -904 -375 -492 919 -424 -172 -1376 -1645 1809 198 101 -164 -1313 1573 1317 1186 -1128 -1509 -486 -1281 1354 -1229 -1809 -709 195 1946 -505 -430 -1576 630 312 1247 945 729 948 -1349 -1566 -132 1107 1003 -1234 -1280 1728 -1300 1249 713 -1075 -