Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==57142==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000051b8ab bp 0x7fff920da1f0 sp 0x7fff920da1e0 T0) ==57142==The signal is caused by a READ memory access. ==57142==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 0x7f3be9008b96 (/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) ==57142==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
-926 -1354 773 442 28 1184 408 -191 1452 745 1047 -192 -346 1269 365 914 1381 -1246 -1434 214 1927 1945 -1703 1207 -1468 -1946 1311 1828 1049 -1741 -1774 1941 -1220 1709 466 300 1438 -1337 1754 -452 -619 1084 -127 -1969 631 53 38 -1123 938 1757 482 -1817 1560 1764 -487 -299 67 1614 -1259 -863 239 -714 -1056 153 -570 -886 -851 -256 295 -191 -1143 466 782 -82 130 -233 1178 -1291 -1781 -1433 -1521 1664 901 938 989 -357 882 1614 -1771 1933 527 315 1559 -633 473 -393 906 -852 -469 1665 1079 1943 1547 1976 -1436 -400 1172 1013 751 579 -1830 741 -1208 1379 -1353 1798 137 -1658 -1234 -546 1622 -958 -840 1000 111 -1683 639 -1839 1155 1102 236 -422 -1696 950 284 -940 -453 -1186 1007 887 304 1455 1718 -1694 1410 1428 -601 -897 -804 835 -1284 1487 688 -1282 -1105 1131 -1948 -1044 -1329 -940 1935 -962 1838 902 -1916 -950 -921 1599 263 1246 -673 1895 -891 -1970 -1481 -1465 -816 -381 -1862 -1203 -1978 1978 1677 -1899 1367 -19 1452 479 -974 463 523 -1973 -236 206 -271 -664 1687 -1734 -2 1071 1807 -69 -1805 -790 -136 -728 -15