Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==22713==ERROR: LeakSanitizer: detected memory leaks Direct leak of 400008 byte(s) in 50001 object(s) allocated from: #0 0x7ff99f007448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x558af6c6b91a in queuei(Dlist<Instr>&, int) (/out/package/sam_mem+0x391a) Direct leak of 320 byte(s) in 80 object(s) allocated from: #0 0x7ff99f007448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x558af6c6afc0 in stacki(Dlist<int>&, int) (/out/package/sam_mem+0x2fc0) #2 0x558af6c6c6b1 (/out/package/sam_mem+0x46b1) Direct leak of 48 byte(s) in 12 object(s) allocated from: #0 0x7ff99f007448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x558af6c6a3ff in main (/out/package/sam_mem+0x23ff) Direct leak of 12 byte(s) in 3 object(s) allocated from: #0 0x7ff99f007448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/
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
80094675 46773160 88785988 98436007 93644103 46814601 52023461 16791725 25615620 25938929 64659406 50640742 14250594 13383223 38951139 36788396 70749274 99315343 46541593 78433327 58825777 18394201 88557307 54284557 27549451 77501885 25157555 47965495 42068493 61513040 95201702 7992670 12340940 24644424 74336079 41843922 65989928 73975617 46461826 37982413 12457476 90085793 13053976 74409116 83678453 87914634 5066014 35052823 8169333 70404110 97983666 44972382 17396165 11338692 98383662 31013140 63880103 42347091 48358743 61729897 86421269 8659604 69874607 12082425 50751172 3554717 9416423 79744334 36205185 68410462 39046340 30927795 66297454 41069468 1429547 91452517 37746648 65976394 -659009391 26894199 25603781 32560495 95189332 78059581 1907729596 39289368 148855 71257277 23330695 12489014 26746644 65881565 67611402 97102243 12263094
JOJ Answer
1410229087 1874512964 430196835 430196835 1438094767 467627935 1791930715 1603175461 1344448245 1793516632 1438094767 1793516632 515004171 1515923624 1342466754 193413795 1307894613 1042579436 1342466754