Record Case Detail

Notes

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

Stderr

=================================================================
==24446==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x7f637d37f448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x5613a2fa4e77 in operate(Instr*, Stack<int>&, Queue<Instr>&, int*) (/out/package/sam_mem+0x3e77)
    #2 0x60300000021f  (<unknown module>)

Direct leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x7f637d37f448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x5613a2fa4e77 in operate(Instr*, Stack<int>&, Queue<Instr>&, int*) (/out/package/sam_mem+0x3e77)
    #2 0x6030000001bf  (<unknown module>)

Direct leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x7f637d37f448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x5613a2fa4daf in operate(Instr*, Stack<int>&, Queue<Instr>&, int*) (/out/package/sam_mem+0x3daf)
    #2 0x60300000012f  (<unk

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 85808006
51886834 77843054 58906371 66993369 46745613 73723609 32156507 98463025 40841113 13072656 79132282 67169913 34040285 92186579 42995035 85808006 
PUSHI 1 STORE NOR NOOP PUSHI 9 LOAD IFZ 11 NOOP PUSHI 1078585673 PUSHI 4 STORE PUSHI 9 STORE PUSHI 1535416455 POP PUSHI 10 LOAD NOR NOOP IFZ 9 POP NOOP PUSHI 1658060760 NOR IFZ 12 POP ADD PUSHI 0 IFZ 14 IFZ 6 LOAD PUSHI 196598699 PUSHI 861401114 ADD LOAD ADD HALT LOAD ADD NOOP PUSHI 944386872 IFZ 20 STORE NOOP IFZ 30 PUSHI 4 LOAD POP NOOP HALT 
41107445 11180890 97326372 42604197 71166825 41517846 7380211 22352795 35752879 80108732 52916976 63389792 93301516 33049111 92870062 3053488 
PUSHI 1
51886834 77843054 58906371 66993369 46745613 73723609 32156507 98463025 40841113 13072656 79132282 67169913 34040285 92186579 42995035 85808006 1 
STORE NOR NOOP PUSHI 9 LOAD IFZ 11 NOOP PUSHI 1078585673 PUSHI 4 STORE PUSHI 9 STORE PUSHI 1535416455 POP PUSHI 10 LOAD NOR NOOP IFZ 9 POP NOOP PUSHI 1658060760 NOR IFZ 12 POP ADD PUSHI 0 IFZ 14 IFZ 6 LOAD PUSHI 1965986

JOJ Answer

PUSHI 85808006
51886834 77843054 58906371 66993369 46745613 73723609 32156507 98463025 40841113 13072656 79132282 67169913 34040285 92186579 42995035 85808006 
PUSHI 1 STORE NOR NOOP PUSHI 9 LOAD IFZ 11 NOOP PUSHI 1078585673 PUSHI 4 STORE PUSHI 9 STORE PUSHI 1535416455 POP PUSHI 10 LOAD NOR NOOP IFZ 9 POP NOOP PUSHI 1658060760 NOR IFZ 12 POP ADD PUSHI 0 IFZ 14 IFZ 6 LOAD PUSHI 196598699 PUSHI 861401114 ADD LOAD ADD HALT LOAD ADD NOOP PUSHI 944386872 IFZ 20 STORE NOOP IFZ 30 PUSHI 4 LOAD POP NOOP HALT 
41107445 11180890 97326372 42604197 71166825 41517846 7380211 22352795 35752879 80108732 52916976 63389792 93301516 33049111 92870062 3053488 
PUSHI 1
51886834 77843054 58906371 66993369 46745613 73723609 32156507 98463025 40841113 13072656 79132282 67169913 34040285 92186579 42995035 85808006 1 
STORE NOR NOOP PUSHI 9 LOAD IFZ 11 NOOP PUSHI 1078585673 PUSHI 4 STORE PUSHI 9 STORE PUSHI 1535416455 POP PUSHI 10 LOAD NOR NOOP IFZ 9 POP NOOP PUSHI 1658060760 NOR IFZ 12 POP ADD PUSHI 0 IFZ 14 IFZ 6 LOAD PUSHI 1965986