Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==39324==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x615000000280 at pc 0x0000004db7f2 bp 0x7ffc812eb650 sp 0x7ffc812eae00 READ of size 8 at 0x615000000280 thread T0 #0 0x4db7f1 (/out/package/ex5+0x4db7f1) #1 0x5176e1 (/out/package/ex5+0x5176e1) #2 0x516056 (/out/package/ex5+0x516056) #3 0x7f6729f31b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #4 0x41ca79 (/out/package/ex5+0x41ca79) 0x615000000280 is located 0 bytes to the right of 512-byte region [0x615000000080,0x615000000280) allocated by thread T0 here: #0 0x4dcb58 (/out/package/ex5+0x4dcb58) #1 0x516267 (/out/package/ex5+0x516267) #2 0x515ebe (/out/package/ex5+0x515ebe) #3 0x7f6729f31b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) SUMMARY: AddressSanitizer: heap-buffer-overflow (/out/package/ex5+0x4db7f1) Shadow bytes around the buggy address: 0x0c2a7fff8000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c2a7fff8010: 00
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.28 -0.60 0.28 -0.60 -0.38 0.28 -0.60 -0.38 0.28 -0.60 -0.38 0.28 -0.60 -0.38 0.15 0.28 -0.60 -0.38 0.13 0.15 0.28 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 -0.78 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 -0.78 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 -0.78 -0.70 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 -0.78 -0.70 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.79 -0.78 -0.70 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.97 -0.79 -0.78 -0.70 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.97 -0.79 -0.78 -0.70 -0.62 -0.60 -0.58 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.97 -0.79 -0.78 -0.70 -0.62 -0.60 -0.58 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.97 -0.79 -0.7
JOJ Answer
0.28 -0.60 0.28 -0.60 -0.38 0.28 -0.60 -0.38 0.28 -0.60 -0.38 0.28 -0.60 -0.38 0.15 0.28 -0.60 -0.38 0.13 0.15 0.28 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 -0.78 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 -0.78 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 -0.78 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 -0.78 -0.70 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 -0.78 -0.70 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.79 -0.78 -0.70 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.97 -0.79 -0.78 -0.70 -0.62 -0.60 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.97 -0.79 -0.78 -0.70 -0.62 -0.60 -0.58 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49 0.73 -0.97 -0.79 -0.78 -0.70 -0.62 -0.60 -0.58 -0.38 -0.07 0.06 0.13 0.15 0.28 0.49