Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==52285==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x606000000060 at pc 0x0000005173fa bp 0x7ffe770522a0 sp 0x7ffe77052298 WRITE of size 8 at 0x606000000060 thread T0 #0 0x5173f9 (/out/package/ex5+0x5173f9) #1 0x516000 (/out/package/ex5+0x516000) #2 0x7fdc68c5eb96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x41c9f9 (/out/package/ex5+0x41c9f9) 0x606000000060 is located 0 bytes to the right of 64-byte region [0x606000000020,0x606000000060) freed by thread T0 here: #0 0x4dcd30 (/out/package/ex5+0x4dcd30) #1 0x516cb4 (/out/package/ex5+0x516cb4) #2 0x516000 (/out/package/ex5+0x516000) #3 0x7fdc68c5eb96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) previously allocated by thread T0 here: #0 0x4dc8b0 (/out/package/ex5+0x4dc8b0) #1 0x5161cd (/out/package/ex5+0x5161cd) #2 0x515e3e (/out/package/ex5+0x515e3e) #3 0x7fdc68c5eb96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) SUMMARY: Ad
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
0.48 0.48 0.48 0.48 0.81 0.48 0.74 0.81 -0.57 0.48 0.74 0.81 -0.57 0.48 0.74 0.81 -0.60 -0.57 0.48 0.74 0.81 -0.60 -0.57 0.48 0.74 0.81 -0.60 -0.57 -0.46 0.48 0.74 0.81 -0.60 -0.57 -0.46 0.07 0.48 0.74 0.81 -0.60 -0.57 -0.46 0.07 0.48 0.74 0.81 -0.60 -0.57 -0.46 0.07 0.48 0.74 0.81 -0.60 -0.57 -0.46 0.07 0.48 0.74 0.81 -0.60 -0.57 -0.46 0.07 0.48 0.74 -0.60 -0.57 -0.46 -0.10 0.07 0.48 0.74 -0.60 -0.57 -0.46 -0.10 0.07 0.48 0.74 -0.60 -0.57 -0.46 -0.10 0.07 0.48 0.74 -0.60 -0.57 -0.46 -0.10 0.07 0.48 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.48 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.48 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.48 0.55 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.48 0.55 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.48 0.55 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.48 0.55 0.57 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.39 0.48 0.55 0.57 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.39 0.48 0.55 0.57 0.74 0.77 -0.60 -0.57 -0.10 0.07 0.17 0.39 0.48 0.55 0.57 0.74 0.77 -0.82 -0.60 -0.57 -0.10 0.07 0.17 0.