Record Case Detail

Notes

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

Stderr

=================================================================
==22587==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 400008 byte(s) in 50001 object(s) allocated from:
    #0 0x7fdb08f1f448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x55bb14b2e808 in queue_init(Dlist<Instr>&, int) (/out/package/sam_mem+0x3808)

Direct leak of 320 byte(s) in 80 object(s) allocated from:
    #0 0x7fdb08f1f448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x55bb14b2df1f in stack_init(Dlist<int>&, int) (/out/package/sam_mem+0x2f1f)

Direct leak of 48 byte(s) in 12 object(s) allocated from:
    #0 0x7fdb08f1f448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x55bb14b2d0a4 in main (/out/package/sam_mem+0x20a4)

Direct leak of 12 byte(s) in 3 object(s) allocated from:
    #0 0x7fdb08f1f448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x55bb14b2e161 i

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

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