Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==22766==ERROR: LeakSanitizer: detected memory leaks Direct leak of 20 byte(s) in 5 object(s) allocated from: #0 0x7fd4b5271448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x55e376723e79 in main (/out/package/sam_mem+0x1e79) Direct leak of 4 byte(s) in 1 object(s) allocated from: #0 0x7fd4b5271448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x55e3767243eb in main (/out/package/sam_mem+0x23eb) #2 0xede5104467809ff (<unknown module>) Direct leak of 4 byte(s) in 1 object(s) allocated from: #0 0x7fd4b5271448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x55e376725a89 in load(Stack&, int*) (/out/package/sam_mem+0x3a89) SUMMARY: AddressSanitizer: 28 byte(s) leaked in 7 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