Record Case Detail

Notes

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

Stderr

=================================================================
==3871==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffce023344f at pc 0x555b01deab33 bp 0x7ffce021a160 sp 0x7ffce021a150
READ of size 1 at 0x7ffce023344f thread T0
    #0 0x555b01deab32 in replace_variable (/out/package/lab5+0xdb32)
    #1 0x555b01de4a4c in main (/out/package/lab5+0x7a4c)
    #2 0x7f79f1f6fc86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
    #3 0x555b01de53b9 in _start (/out/package/lab5+0x83b9)

Address 0x7ffce023344f is located in stack of thread T0 at offset 102527 in frame
    #0 0x555b01de462f in main (/out/package/lab5+0x762f)

  This frame has 4 object(s):
    [32, 30752) 'data'
    [30784, 98368) 'Var'
    [98400, 102496) 'line1'
    [102528, 106624) 'line2' <== Memory access at offset 102527 underflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
SUMMARY: Addre

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

2.000000
0.010000
250.000000
0.500000
250.000000
62253.000000
64.000000
7091.000000
2.550000
-2490.000000
-22.350000