Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

=================================================================
==78002==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x616000000288 at pc 0x000000517c6c bp 0x7ffda72448c0 sp 0x7ffda72448b8
WRITE of size 8 at 0x616000000288 thread T0
    #0 0x517c6b  (/out/package/ex5+0x517c6b)
    #1 0x516090  (/out/package/ex5+0x516090)
    #2 0x7f2115963b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41ca89  (/out/package/ex5+0x41ca89)

0x616000000288 is located 0 bytes to the right of 520-byte region [0x616000000080,0x616000000288)
allocated by thread T0 here:
    #0 0x4dcdc0  (/out/package/ex5+0x4dcdc0)
    #1 0x51714a  (/out/package/ex5+0x51714a)
    #2 0x516090  (/out/package/ex5+0x516090)
    #3 0x7f2115963b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/out/package/ex5+0x517c6b) 
Shadow bytes around the buggy address:
  0x0c2c7fff8000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c2c7fff8010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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.87 
0.83 0.87 
-0.22 0.83 0.87 
-0.22 0.83 0.87 
-0.22 0.26 0.83 0.87 
-0.22 0.11 0.26 0.83 0.87 
-0.22 -0.18 0.11 0.26 0.83 0.87 
-0.28 -0.22 -0.18 0.11 0.26 0.83 0.87 
-0.28 -0.22 -0.18 0.11 0.26 0.83 0.87 
-0.28 -0.22 -0.18 0.11 0.26 0.83 0.87 0.98 
-0.28 -0.22 -0.18 0.11 0.26 0.52 0.83 0.87 0.98 
-0.51 -0.28 -0.22 -0.18 0.11 0.26 0.52 0.83 0.87 0.98 
-0.51 -0.28 -0.22 -0.18 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.51 -0.28 -0.22 -0.18 0.01 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.51 -0.28 -0.22 -0.18 0.01 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.06 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.73 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.06 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.73 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.06 0.11 0.26 0.38 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.73 -0.63 -0.62 -0.51 -0.28 -0.22 -0.18 0.0

JOJ Answer

0.87 
0.83 0.87 
-0.22 0.83 0.87 
-0.22 0.83 0.87 
-0.22 0.26 0.83 0.87 
-0.22 0.11 0.26 0.83 0.87 
-0.22 -0.18 0.11 0.26 0.83 0.87 
-0.28 -0.22 -0.18 0.11 0.26 0.83 0.87 
-0.28 -0.22 -0.18 0.11 0.26 0.83 0.87 
-0.28 -0.22 -0.18 0.11 0.26 0.83 0.87 0.98 
-0.28 -0.22 -0.18 0.11 0.26 0.52 0.83 0.87 0.98 
-0.51 -0.28 -0.22 -0.18 0.11 0.26 0.52 0.83 0.87 0.98 
-0.51 -0.28 -0.22 -0.18 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.51 -0.28 -0.22 -0.18 0.01 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.51 -0.28 -0.22 -0.18 0.01 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.06 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.73 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.06 0.11 0.26 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.73 -0.62 -0.51 -0.28 -0.22 -0.18 0.01 0.06 0.11 0.26 0.38 0.40 0.52 0.83 0.87 0.98 
-0.79 -0.73 -0.63 -0.62 -0.51