Record Case Detail

Notes

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

Stderr

/in/lab5.c:12:19: runtime error: store to address 0x7ffdd2a9efa8 with insufficient space for an object of type 'char'
0x7ffdd2a9efa8: note: pointer points here
 2e 32 35 7c  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^ 
=================================================================
==5106==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffdd2a9efa8 at pc 0x559bc9e8fff5 bp 0x7ffdd2a9bc60 sp 0x7ffdd2a9bc50
WRITE of size 1 at 0x7ffdd2a9efa8 thread T0
    #0 0x559bc9e8fff4 in main (/out/package/lab5+0x14ff4)
    #1 0x7f899d93ac86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
    #2 0x559bc9e90479 in _start (/out/package/lab5+0x15479)

Address 0x7ffdd2a9efa8 is located in stack of thread T0 at offset 12824 in frame
    #0 0x559bc9e87c7f in main (/out/package/lab5+0xcc7f)

  This frame has 14 object(s):
    [32, 40) 'ptr'
    [96, 576) 'helper'
    [608, 1088) 'REVERSE_helper'
    [1120, 2080) 'RPE_d'
    [2112, 3072) 'REVERS

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