Record Case Detail

Notes

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

Stderr

=================================================================
==23967==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8 byte(s) in 2 object(s) allocated from:
    #0 0x7fa7273c0448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x555843a28e9e in execute(Dlist<int>&, Dlist<Instr>&, int*, bool) (/out/package/sam_mem+0x3e9e)
    #2 0x555843a2a42f  (/out/package/sam_mem+0x542f)

Direct leak of 8 byte(s) in 2 object(s) allocated from:
    #0 0x7fa7273c0448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x555843a287ad in execute(Dlist<int>&, Dlist<Instr>&, int*, bool) (/out/package/sam_mem+0x37ad)
    #2 0x555843a2a42f  (/out/package/sam_mem+0x542f)

SUMMARY: AddressSanitizer: 16 byte(s) leaked in 4 allocation(s).

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 

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 PUSHI