Record Case Detail

Notes

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

Stderr

=================================================================
==4320==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc75f76758 at pc 0x55ea513a3469 bp 0x7ffc75f734c0 sp 0x7ffc75f734b0
READ of size 1 at 0x7ffc75f76758 thread T0
    #0 0x55ea513a3468 in main (/out/package/lab5+0xc468)
    #1 0x7f758a5dfc86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
    #2 0x55ea513a3539 in _start (/out/package/lab5+0xc539)

Address 0x7ffc75f76758 is located in stack of thread T0 at offset 12664 in frame
    #0 0x55ea5139e73f in main (/out/package/lab5+0x773f)

  This frame has 13 object(s):
    [32, 40) 'ptr'
    [96, 576) 'helper'
    [608, 1088) 'REVERSE_helper'
    [1120, 2080) 'RPE_d'
    [2112, 3072) 'REVERSE_RPE_d'
    [3104, 4064) 'load_cal_stack'
    [4096, 5056) 'cal_stack'
    [5088, 7488) 'input'
    [7520, 9920) 'infix_origin'
    [9952, 12352) 'infix'
    [12384, 12504) 'temp'
    [12544, 12664) 'RPE' <== Memory access at offset 12664 overflows this variable
    [12704, 12824

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