Record Case Detail

Notes

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

Stderr

=================================================================
==27287==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 56928 byte(s) in 1779 object(s) allocated from:
    #0 0x7fb7574f5448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x561ffe961a19 in Dlist<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::copyAll(Dlist<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&) (/out/package/sam_mem+0xaa19)
    #2 0x561ffe95c8e1 in taking_command(Stack<int>&, Queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, int*, bool) (/out/package/sam_mem+0x58e1)
    #3 0x561ffe959fa4 in main (/out/package/sam_mem+0x2fa4)
    #4 0x7fb756aa4b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 1600 byte(s) in 50 object(s) allocated from:
    #0 0x7fb7574f5448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe044

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