Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==9174==ERROR: LeakSanitizer: detected memory leaks Direct leak of 72 byte(s) in 3 object(s) allocated from: #0 0x517480 (/out/package/test_part1_memcheck+0x517480) #1 0x52cadd (/out/package/test_part1_memcheck+0x52cadd) #2 0x52d45a (/out/package/test_part1_memcheck+0x52d45a) #3 0x7f60b4c02b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) Indirect leak of 72 byte(s) in 3 object(s) allocated from: #0 0x517480 (/out/package/test_part1_memcheck+0x517480) #1 0x52cadd (/out/package/test_part1_memcheck+0x52cadd) #2 0x52ca65 (/out/package/test_part1_memcheck+0x52ca65) #3 0x52d45a (/out/package/test_part1_memcheck+0x52d45a) #4 0x7f60b4c02b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) Indirect leak of 48 byte(s) in 2 object(s) allocated from: #0 0x517480 (/out/package/test_part1_memcheck+0x517480) #1 0x52cadd (/out/package/test_part1_memcheck+0x52cadd) #2 0x52ca65 (/out/package/test_part1_memche
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
-875 25 -690
JOJ Answer
965 1621 -1348 -1576 -1878 1109 -166 659 -1731 424 -1723 634 -1453 -1891 -1740 -720 -921 -138 -459 565 277 752 -1872 1201 -868 -93 1545 471 -727 -36 -854 446 518 1461 1023 -194 1179 415 -1591 -1866 -339 -1167 -977 1816 -83 1027 1801 -1878 735 -1199 694 -1571 -99 -686 -494 -2000 -1899 1590 1360 1380 1858 -1866 -651 -548 1594 -102 -1655 206 -1202 -1562 1032 120 -1785 -308 1462 -1113 1797 -324 1451 216 654 -1490 962 1411 1735 1682 1234 -1753 -662 -893 1000 1303 646 -1855 -1107 1985 -426 -912 1035 1953 -1561 843 1680 -1615 1401 -1489 29 -116 -688 1317 -1309 145 711 -780 -260 -53 -1670 -1323 1250 249 -970 -1572 -1530 -215 1663 1707 -1510 -34 -1909 850 -1017 -333 315 450 -994 -1487 743 -1238 93 -1590 119 -1798 -1177 -524 21 919 -424 -492 -1376 -1645 -172 -375 -904 -690 -164 1573 -1313 101 -1128 -1509 1186 -486 1317 198 -1229 1354 195 1946 -709 -505 -1809 -1281 1809 1347 630 -1576 -430 1629 948 729 1107 1003 -132 -1566 -1349 945 1247 713 -1075 1249 -1468 -1063 -1300 1728 -1280 -1234 312 1024 -1182 370 -1540 200 1965