Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==34132==ERROR: AddressSanitizer: heap-use-after-free on address 0x6020000010d8 at pc 0x000000516b1f bp 0x7ffd48d787a0 sp 0x7ffd48d78798 READ of size 4 at 0x6020000010d8 thread T0 #0 0x516b1e (/out/package/hashtable+0x516b1e) #1 0x51509f (/out/package/hashtable+0x51509f) #2 0x7f46cde19b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x41c959 (/out/package/hashtable+0x41c959) 0x6020000010d8 is located 8 bytes inside of 16-byte region [0x6020000010d0,0x6020000010e0) freed by thread T0 here: #0 0x4dc640 (/out/package/hashtable+0x4dc640) #1 0x51509f (/out/package/hashtable+0x51509f) #2 0x7f46cde19b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) previously allocated by thread T0 here: #0 0x4dc810 (/out/package/hashtable+0x4dc810) #1 0x515511 (/out/package/hashtable+0x515511) #2 0x51503a (/out/package/hashtable+0x51503a) #3 0x7f46cde19b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) SUMMARY: Address
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
0 ***End*** 1 ***End*** 2 ***End*** 3 ***End*** 4 ***End*** 5 ***End*** 6 ***End*** 7 ***End*** 8 ***End*** 9 ***End*** 10 ***End*** 11 ***End*** 12 ***End*** 13 ***End*** 14 ***End*** 15 ***End*** 16 ***End*** 17 ***End*** 18 ***End*** 19 ***End*** 20 ***End*** 21 ***End*** 22 ***End*** 23 ***End*** 24 ***End*** 25 ***End*** 26 ***End*** 27 ***End*** 28 ***End*** 29 ***End*** 30 ***End*** 31 ***End*** 32 ***End*** 33 ***End*** 34 ***End*** 35 ***End*** 36 ***End*** 37 ***End*** 38 ***End*** 39 ***End*** 40 ***End*** 41 ***End*** 42 ***End*** 43 ***End*** 44 ***End*** 45 ***End*** 46 ***End*** 47 ***End*** 48 ***End*** 49 ***End*** 50 ***End*** 51 ***End*** 52 ***End*** 53 ***End*** 54 ***End*** 55 ***End*** 56 ***End*** 57 ***End*** 58 ***End*** 59 ***End*** 60 ***End*** 61 ***End*** 62 ***End*** 63 ***End*** 64 ***End*** 65 ***End*** 66 ***End*** 67 ***End*** 68 ***End*** 69 ***End*** 70 ***End*** 71 ***End*** 72 ***End*** 73 ***End*** 74 ***End*** 75 ***End*** 76 ***End*** 77 ***End*** 78 ***End*** 79 ***E
JOJ Answer
0 ***End*** 1 ***End*** 2 ***End*** 3 ***End*** 4 ***End*** 5 ***End*** 6 ***End*** 7 ***End*** 8 ***End*** 9 ***End*** 10 ***End*** 11 ***End*** 12 ***End*** 13 ***End*** 14 ***End*** 15 ***End*** 16 ***End*** 17 ***End*** 18 ***End*** 19 ***End*** 20 ***End*** 21 ***End*** 22 ***End*** 23 ***End*** 24 ***End*** 25 ***End*** 26 ***End*** 27 ***End*** 28 ***End*** 29 ***End*** 30 ***End*** 31 ***End*** 32 ***End*** 33 ***End*** 34 ***End*** 35 ***End*** 36 ***End*** 37 ***End*** 38 ***End*** 39 ***End*** 40 ***End*** 41 ***End*** 42 ***End*** 43 ***End*** 44 ***End*** 45 ***End*** 46 ***End*** 47 ***End*** 48 ***End*** 49 ***End*** 50 ***End*** 51 ***End*** 52 ***End*** 53 ***End*** 54 ***End*** 55 ***End*** 56 ***End*** 57 ***End*** 58 ***End*** 59 ***End*** 60 ***End*** 61 ***End*** 62 ***End*** 63 ***End*** 64 ***End*** 65 ***End*** 66 ***End*** 67 ***End*** 68 ***End*** 69 ***End*** 70 ***End*** 71 ***End*** 72 ***End*** 73 ***End*** 74 ***End*** 75 ***End*** 76 ***End*** 77 ***End*** 78 ***End*** 79 ***E