Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==24834==ERROR: LeakSanitizer: detected memory leaks Direct leak of 392 byte(s) in 49 object(s) allocated from: #0 0x7f9d1d52e448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x5560565f4084 in main (/out/package/sam_mem+0x2084) Direct leak of 20 byte(s) in 5 object(s) allocated from: #0 0x7f9d1d52e448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x5560565f4e74 in main (/out/package/sam_mem+0x2e74) Direct leak of 8 byte(s) in 2 object(s) allocated from: #0 0x7f9d1d52e448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x5560565f4b0c in main (/out/package/sam_mem+0x2b0c) Direct leak of 8 byte(s) in 2 object(s) allocated from: #0 0x7f9d1d52e448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x5560565f4d04 in main (/out/package/sam_mem+0x2d04) Direct leak of 4 byte(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 1649711916 93228260 92568512 58348932 42447982 28784986 13050415 45149713 28958753 56552544 50581226 1649711916 POP ADD POP PUSHI 841201080 NOR PUSHI 8 STORE NOR ADD ADD ADD NOR NOR NOOP PUSHI 2091405970 POP PUSHI 1998913879 NOR NOOP PUSHI 444469058 PUSHI 3 LOAD NOOP NOR PUSHI 233034299 NOR PUSHI 11 LOAD POP PUSHI 4 STORE PUSHI 55044502 POP PUSHI 10 STORE PUSHI 12 LOAD NOOP PUSHI 9 STORE PUSHI 1363014917 NOOP IFZ 29 NOOP NOOP PUSHI 2 LOAD IFZ 7 PUSHI 12 LOAD PUSHI 8 STORE PUSHI 11 LOAD IFZ 13 NOOP PUSHI 495927816 PUSHI 360636001 PUSHI 700663831 PUSHI 43091797 PUSHI 1663146068 IFZ 14 NOOP POP NOR NOOP NOR POP PUSHI 7 LOAD IFZ 24 NOOP PUSHI 1865236957 PUSHI 6 LOAD IFZ 1 PUSHI 14 LOAD IFZ 16 PUSHI 3 LOAD NOR POP PUSHI 1991931052 PUSHI 1673717628 NOOP POP IFZ 8 NOOP NOOP NOOP PUSHI 1485088237 PUSHI 14 LOAD PUSHI 6 STORE PUSHI 2 STORE NOOP NOOP NOOP PUSHI 299926287 PUSHI 4 LOAD POP PUSHI 0 IFZ 22 NOOP POP ADD NOR IFZ 26 STORE IFZ 22 POP PUSHI 838976936 LOAD STORE IFZ 24 STORE HALT NOR STORE PUSHI 1728076963
JOJ Answer
PUSHI 1649711916 93228260 92568512 58348932 42447982 28784986 13050415 45149713 28958753 56552544 50581226 1649711916 POP ADD POP PUSHI 841201080 NOR PUSHI 8 STORE NOR ADD ADD ADD NOR NOR NOOP PUSHI 2091405970 POP PUSHI 1998913879 NOR NOOP PUSHI 444469058 PUSHI 3 LOAD NOOP NOR PUSHI 233034299 NOR PUSHI 11 LOAD POP PUSHI 4 STORE PUSHI 55044502 POP PUSHI 10 STORE PUSHI 12 LOAD NOOP PUSHI 9 STORE PUSHI 1363014917 NOOP IFZ 29 NOOP NOOP PUSHI 2 LOAD IFZ 7 PUSHI 12 LOAD PUSHI 8 STORE PUSHI 11 LOAD IFZ 13 NOOP PUSHI 495927816 PUSHI 360636001 PUSHI 700663831 PUSHI 43091797 PUSHI 1663146068 IFZ 14 NOOP POP NOR NOOP NOR POP PUSHI 7 LOAD IFZ 24 NOOP PUSHI 1865236957 PUSHI 6 LOAD IFZ 1 PUSHI 14 LOAD IFZ 16 PUSHI 3 LOAD NOR POP PUSHI 1991931052 PUSHI 1673717628 NOOP POP IFZ 8 NOOP NOOP NOOP PUSHI 1485088237 PUSHI 14 LOAD PUSHI 6 STORE PUSHI 2 STORE NOOP NOOP NOOP PUSHI 299926287 PUSHI 4 LOAD POP PUSHI 0 IFZ 22 NOOP POP ADD NOR IFZ 26 STORE IFZ 22 POP PUSHI 838976936 LOAD STORE IFZ 24 STORE HALT NOR STORE PUSHI 1728076963