Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==6188==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 0x7f105cd23b96 (/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 0x7f105cd23b96 (/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
-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
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