Record Case Detail

Notes

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

Stderr

=================================================================
==6176==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 0x7f072ac84b96  (/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 0x521261  (/out/package/test_part1_memcheck+0x521261)
    #3 0x521261  (/out/package/test_part1_memcheck+0x521261)
    #4 0x521c3a  (/out/package/test_part1_memcheck+0x521c3a)
    #5 0x7f072ac84b96  (/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_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

1380 -926 -1390 1553 -1296 1895 751 1013 300 466 -1703 365 1184 28 442 -1354 773 1269 -346 1452 408 -191 -192 745 1047 1945 1927 214 914 -1434 1381 -1246 1709 -1220 1941 1311 -1946 1207 -1468 -1774 -1741 1828 1049 1172 1559 130 -1817 1757 -127 1754 1438 -1337 1084 -452 -619 938 53 -1969 631 -1123 38 482 -82 -863 -487 1764 1560 -1259 1614 -299 67 782 -851 -1056 239 -714 -886 153 -570 466 295 -256 -1143 -191 315 527 901 -1781 -1291 -233 1178 1664 -1521 -1433 1933 -1771 989 938 1614 -357 882 -400 -1436 1547 -852 -633 906 -393 473 1943 1079 1665 -469 1976 -673 1246 263 1599 304 -1234 -1658 -1208 741 579 -1830 137 1798 1379 -1353 887 639 111 -958 -546 1622 1000 -840 -1683 1007 -1696 1102 -1839 1155 -422 236 -1186 284 950 -453 -940 -921 835 -804 1410 -1694 1455 1718 -897 -601 1428 -950 -1948 1487 -1284 1131 -1105 688 -1282 -1916 902 -940 -1044 -1329 1838 1935 -962 -542 -1878 -310 84 -394 -1516 463 1978 -1465 -1481 -891 -1970 -1978 -381 -816 -1203 -1862 -974 479 -1899 1677 1452 1367 -19 -728 -1734 523 1687 -236 -197

JOJ Answer

1380 -926 -1390 1553 -1296 1895 751 1013 300 466 -1703 365 1184 28 442 -1354 773 1269 -346 1452 408 -191 -192 745 1047 1945 1927 214 914 -1434 1381 -1246 1709 -1220 1941 1311 -1946 1207 -1468 -1774 -1741 1828 1049 1172 1559 130 -1817 1757 -127 1754 1438 -1337 1084 -452 -619 938 53 -1969 631 -1123 38 482 -82 -863 -487 1764 1560 -1259 1614 -299 67 782 -851 -1056 239 -714 -886 153 -570 466 295 -256 -1143 -191 315 527 901 -1781 -1291 -233 1178 1664 -1521 -1433 1933 -1771 989 938 1614 -357 882 -400 -1436 1547 -852 -633 906 -393 473 1943 1079 1665 -469 1976 -673 1246 263 1599 304 -1234 -1658 -1208 741 579 -1830 137 1798 1379 -1353 887 639 111 -958 -546 1622 1000 -840 -1683 1007 -1696 1102 -1839 1155 -422 236 -1186 284 950 -453 -940 -921 835 -804 1410 -1694 1455 1718 -897 -601 1428 -950 -1948 1487 -1284 1131 -1105 688 -1282 -1916 902 -940 -1044 -1329 1838 1935 -962 -542 -1878 -310 84 -394 -1516 463 1978 -1465 -1481 -891 -1970 -1978 -381 -816 -1203 -1862 -974 479 -1899 1677 1452 1367 -19 -728 -1734 523 1687 -236 -197