Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==69125==ERROR: AddressSanitizer: heap-use-after-free on address 0x6020000003b8 at pc 0x5611f9090325 bp 0x7ffeb2655330 sp 0x7ffeb2655320 READ of size 4 at 0x6020000003b8 thread T0 #0 0x5611f9090324 in List<int>::removeFront() [clone .isra.7] (/out/package/lab9_mem+0x2324) #1 0x5611f9091cef in isLarger(List<int> const&, List<int> const&) (/out/package/lab9_mem+0x3cef) #2 0x5611f909aa84 in case7() (/out/package/lab9_mem+0xca84) #3 0x5611f908fe01 in main (/out/package/lab9_mem+0x1e01) #4 0x7fdd91226b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x5611f90901d9 in _start (/out/package/lab9_mem+0x21d9) 0x6020000003b8 is located 8 bytes inside of 16-byte region [0x6020000003b0,0x6020000003c0) freed by thread T0 here: #0 0x7fdd91c789c8 in operator delete(void*, unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe19c8) #1 0x5611f9091e21 in isLarger(List<int> const&, List<int> const&) (/out/pa
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
JOJ Answer
1 5413 8413 101 01