Record Case Detail

Notes

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

Stderr

=================================================================
==22702==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 408 byte(s) in 51 object(s) allocated from:
    #0 0x7fea12916448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x556b44b1691a in queuei(Dlist<Instr>&, int) (/out/package/sam_mem+0x391a)

Direct leak of 76 byte(s) in 19 object(s) allocated from:
    #0 0x7fea12916448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x556b44b153ff in main (/out/package/sam_mem+0x23ff)

Direct leak of 36 byte(s) in 9 object(s) allocated from:
    #0 0x7fea12916448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x556b44b15fc0 in stacki(Dlist<int>&, int) (/out/package/sam_mem+0x2fc0)
    #2 0x556b44b176b1  (/out/package/sam_mem+0x46b1)

Direct leak of 12 byte(s) in 3 object(s) allocated from:
    #0 0x7fea12916448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.

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

PUSHI 2066598582
25427676 93934504 64690425 50248954 76202599 66816898 10670047 8615449 5516253 2066598582 
PUSHI 1100902635 PUSHI 1 STORE PUSHI 4 STORE NOOP NOOP NOOP NOR ADD NOOP PUSHI 8 LOAD NOR PUSHI 10 LOAD NOOP PUSHI 10 STORE PUSHI 963601451 IFZ 4 NOR PUSHI 0 STORE PUSHI 118538716 NOOP PUSHI 13 LOAD POP PUSHI 1778506840 POP PUSHI 139379364 IFZ 29 PUSHI 11 LOAD NOOP IFZ 9 PUSHI 4 LOAD POP POP PUSHI 143712661 NOOP PUSHI 14 STORE NOOP PUSHI 8 LOAD PUSHI 1301674375 HALT 
59236248 19415547 55585379 20652759 35944819 12350931 34762895 68755663 67438496 37176545 81253422 65083703 59834632 46602040 20359801 54088791 PUSHI 1100902635
25427676 93934504 64690425 50248954 76202599 66816898 10670047 8615449 5516253 2066598582 1100902635 
PUSHI 1 STORE PUSHI 4 STORE NOOP NOOP NOOP NOR ADD NOOP PUSHI 8 LOAD NOR PUSHI 10 LOAD NOOP PUSHI 10 STORE PUSHI 963601451 IFZ 4 NOR PUSHI 0 STORE PUSHI 118538716 NOOP PUSHI 13 LOAD POP PUSHI 1778506840 POP PUSHI 139379364 IFZ 29 PUSHI 11 LOAD NOOP IFZ 9 PUSHI 4 LOAD POP POP PUSHI 1

JOJ Answer

PUSHI 2066598582
25427676 93934504 64690425 50248954 76202599 66816898 10670047 8615449 5516253 2066598582 
PUSHI 1100902635 PUSHI 1 STORE PUSHI 4 STORE NOOP NOOP NOOP NOR ADD NOOP PUSHI 8 LOAD NOR PUSHI 10 LOAD NOOP PUSHI 10 STORE PUSHI 963601451 IFZ 4 NOR PUSHI 0 STORE PUSHI 118538716 NOOP PUSHI 13 LOAD POP PUSHI 1778506840 POP PUSHI 139379364 IFZ 29 PUSHI 11 LOAD NOOP IFZ 9 PUSHI 4 LOAD POP POP PUSHI 143712661 NOOP PUSHI 14 STORE NOOP PUSHI 8 LOAD PUSHI 1301674375 HALT 
59236248 19415547 55585379 20652759 35944819 12350931 34762895 68755663 67438496 37176545 81253422 65083703 59834632 46602040 20359801 54088791 
PUSHI 1100902635
25427676 93934504 64690425 50248954 76202599 66816898 10670047 8615449 5516253 2066598582 1100902635 
PUSHI 1 STORE PUSHI 4 STORE NOOP NOOP NOOP NOR ADD NOOP PUSHI 8 LOAD NOR PUSHI 10 LOAD NOOP PUSHI 10 STORE PUSHI 963601451 IFZ 4 NOR PUSHI 0 STORE PUSHI 118538716 NOOP PUSHI 13 LOAD POP PUSHI 1778506840 POP PUSHI 139379364 IFZ 29 PUSHI 11 LOAD NOOP IFZ 9 PUSHI 4 LOAD POP POP