Record Case Detail

Notes

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

Stderr

=================================================================
==9296==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 0x7fbe033bfb96  (/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 0x52ca81  (/out/package/test_part1_memcheck+0x52ca81)
    #3 0x52d45a  (/out/package/test_part1_memcheck+0x52d45a)
    #4 0x7fbe033bfb96  (/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

-1316 
1294 
1468 

JOJ Answer

-1316 1683 
1294 699 -114 1192 867 707 -528 683 1458 -1324 -795 -43 -411 692 -1330 1320 -395 640 -1780 -1143 82 1781 1260 -1342 -1711 -1033 -1992 -339 -491 -976 1247 -759 -735 -496 -626 1270 -1058 -1872 833 1663 -1322 115 -1238 405 -1373 1808 -207 145 1590 -90 -869 1023 802 1499 -543 -944 360 1215 863 -468 692 -1772 -952 -1772 -645 165 1314 374 -953 -1072 948 -1146 1354 -189 -1295 213 -1829 -406 651 667 -258 -575 -1001 531 178 -155 1770 -134 -1539 -379 831 135 -257 1171 -1728 -268 -395 -167 723 -441 1452 605 -784 56 -1668 -1299 1127 1126 -1139 506 377 1200 -1160 1930 1569 -261 -310 1687 479 696 -1635 -148 -1133 -1190 1374 -668 424 
1468 -119 -542 -822 1723 -1787 866 1615 -1529 379 736 -353 1180 1902 -418 605 798 1753 -1459 -1993 -1955 -86 1311 -1564 -253 -1461 1620 -9 330 894 1039 1977 -451 -286 -157 1339 -1350 1925 -1898 832 -1527 -687 -924 1683 -30 1052 1876 223 1780 153 -125 -1555 586 -74 1104 722 1522 -1318 -515 -810 -1234 1851 1160 1374 1822 121 1033 1476 -28 279 -692 -600 841 -1480 1483 -1788 1281 -1231