Notes
This function is in beta test. Please help improve it in the issues
here.
ASAN:DEADLYSIGNAL ================================================================= ==24707==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55ddfaee623a bp 0x602000001c50 sp 0x7ffdca63ee10 T0) ==24707==The signal is caused by a WRITE memory access. ==24707==Hint: address points to the zero page. #0 0x55ddfaee6239 in Dlist<int>::removeBack() (/out/package/sam_mem+0x5239) #1 0x55ddfaee4158 in main (/out/package/sam_mem+0x3158) #2 0x7f3c1a9d6b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x55ddfaee5ad9 in _start (/out/package/sam_mem+0x4ad9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/sam_mem+0x5239) in Dlist<int>::removeBack() ==24707==ABORTING
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 2 98095241 86080281 36881268 49624697 79203006 69422869 33385773 84407039 31178022 5630953 32390696 2 LOAD NOR PUSHI 0 IFZ 29 HALT NOOP HALT ADD STORE STORE NOR PUSHI 1920698278 HALT ADD NOOP NOR NOR NOOP NOR ADD ADD IFZ 18 NOOP IFZ 6 LOAD NOR NOR NOOP POP IFZ 25 HALT LOAD IFZ 8 NOR ADD POP NOOP NOOP ADD PUSHI 0 IFZ 19 IFZ 17 IFZ 8 IFZ 26 NOR PUSHI 1801720149 PUSHI 1745548261 NOR POP STORE STORE POP IFZ 5 STORE STORE HALT POP HALT NOOP STORE NOR POP NOOP PUSHI 14 STORE PUSHI 5 STORE NOR NOOP NOOP NOOP PUSHI 14 STORE NOOP PUSHI 3 STORE NOOP NOOP NOOP NOOP PUSHI 326001145 PUSHI 15 STORE NOOP NOOP PUSHI 658062153 PUSHI 2 LOAD NOR PUSHI 11 LOAD NOR PUSHI 2 LOAD PUSHI 6 STORE NOOP PUSHI 0 IFZ 3 ADD IFZ 1 IFZ 0 PUSHI 1 LOAD NOR PUSHI 0 LOAD PUSHI 7 STORE IFZ 25 PUSHI 2138204861 PUSHI 0 IFZ 26 POP PUSHI 446256260 LOAD PUSHI 1252739383 NOOP IFZ 27 PUSHI 781444651 NOOP NOOP NOR STORE IFZ 17 LOAD ADD IFZ 23 LOAD LOAD POP NOR PUSHI 1616590112 HALT LOAD HALT POP LOAD NOR POP NOOP PUSHI 1107579743 PUSHI 3 LOAD PUSH
JOJ Answer
PUSHI 2 98095241 86080281 36881268 49624697 79203006 69422869 33385773 84407039 31178022 5630953 32390696 2 LOAD NOR PUSHI 0 IFZ 29 HALT NOOP HALT ADD STORE STORE NOR PUSHI 1920698278 HALT ADD NOOP NOR NOR NOOP NOR ADD ADD IFZ 18 NOOP IFZ 6 LOAD NOR NOR NOOP POP IFZ 25 HALT LOAD IFZ 8 NOR ADD POP NOOP NOOP ADD PUSHI 0 IFZ 19 IFZ 17 IFZ 8 IFZ 26 NOR PUSHI 1801720149 PUSHI 1745548261 NOR POP STORE STORE POP IFZ 5 STORE STORE HALT POP HALT NOOP STORE NOR POP NOOP PUSHI 14 STORE PUSHI 5 STORE NOR NOOP NOOP NOOP PUSHI 14 STORE NOOP PUSHI 3 STORE NOOP NOOP NOOP NOOP PUSHI 326001145 PUSHI 15 STORE NOOP NOOP PUSHI 658062153 PUSHI 2 LOAD NOR PUSHI 11 LOAD NOR PUSHI 2 LOAD PUSHI 6 STORE NOOP PUSHI 0 IFZ 3 ADD IFZ 1 IFZ 0 PUSHI 1 LOAD NOR PUSHI 0 LOAD PUSHI 7 STORE IFZ 25 PUSHI 2138204861 PUSHI 0 IFZ 26 POP PUSHI 446256260 LOAD PUSHI 1252739383 NOOP IFZ 27 PUSHI 781444651 NOOP NOOP NOR STORE IFZ 17 LOAD ADD IFZ 23 LOAD LOAD POP NOR PUSHI 1616590112 HALT LOAD HALT POP LOAD NOR POP NOOP PUSHI 1107579743 PUSHI 3 LOAD PUSH