Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

=================================================================
==6174==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 72 byte(s) in 3 object(s) allocated from:
    #0 0x516fc0  (/out/package/test_part1_memcheck+0x516fc0)
    #1 0x5212bd  (/out/package/test_part1_memcheck+0x5212bd)
    #2 0x521c3a  (/out/package/test_part1_memcheck+0x521c3a)
    #3 0x7fc8aabccb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 72 byte(s) in 3 object(s) allocated from:
    #0 0x516fc0  (/out/package/test_part1_memcheck+0x516fc0)
    #1 0x5212bd  (/out/package/test_part1_memcheck+0x5212bd)
    #2 0x521245  (/out/package/test_part1_memcheck+0x521245)
    #3 0x521c3a  (/out/package/test_part1_memcheck+0x521c3a)
    #4 0x7fc8aabccb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 48 byte(s) in 2 object(s) allocated from:
    #0 0x516fc0  (/out/package/test_part1_memcheck+0x516fc0)
    #1 0x5212bd  (/out/package/test_part1_memcheck+0x5212bd)
    #2 0x521245  (/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 -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 -

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 -