Notes
This function is in beta test. Please help improve it in the issues
here.
ASAN:DEADLYSIGNAL ================================================================= ==35791==ERROR: AddressSanitizer: SEGV on unknown address 0x6060a464436c (pc 0x563e57046f28 bp 0x563e57266c00 sp 0x7ffd995878a0 T0) ==35791==The signal is caused by a WRITE memory access. #0 0x563e57046f27 in instruct(Stack&, Queue&, int*, bool) (/out/package/sam_mem+0x12f27) #1 0x563e570454d3 in main (/out/package/sam_mem+0x114d3) #2 0x7f05be74ab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x563e57045dc9 in _start (/out/package/sam_mem+0x11dc9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/sam_mem+0x12f27) in instruct(Stack&, Queue&, int*, bool) ==35791==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
82873216 31007506 98192373 87989938 7092055 70819978 80294102 21599522 42907948 55994127 10591181 7788643 9392432 82685271 8785140 23996233 23484831 44558342 905119 91038646 52918758 21845396 30431016 95564837 46847417 13408809 18260496 85898526 61934610 73798912 45794025 50764930 30084179 36204832 37007791 13113566 46576294 66588996 42792148 42311783 29344337 71444554 7952773 73126883 10698302 50108945 73780117 14033502 46586471 4661473 7756274 5398312 1841014 2546972 40862729 49811127 87715897 1224168 48937115 30740346 6892943 94084565 96019657 20519143 69962506 97530339 3937363 19560063 16622907 54252244 7900734 367456 67509148 16313591 55861118 89957876 37072222 67765771 16019754 37763979 26611384 47077504 47900506 23785898 28192608 62573194 92657287 87474291 23201251 60792683 66114168 19784578 22499444 119732143 44404179 65893356 1974048616 47567740 738617959 225150602 -1976497940 31889743 -81788341 881273110 44404179 0 20193005 25437871 6327431 65893356 25437871 70931797 -128701420 82873216 31007506 9
JOJ Answer
1710200655 1408246058 2113828593 1603099208 -1264042414 -2077875004 890616150 1262993833 67934061 275150162 890616150 553277236 542146867 -2113828854 -2079837616 1861067855 2108040417