Record Case Detail

Notes

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

Stderr

/in/lab4.c:89:41: runtime error: index 200 out of bounds for type 'char [200]'
/in/lab4.c:89:41: runtime error: load of address 0x7fff326b0168 with insufficient space for an object of type 'char'
0x7fff326b0168: note: pointer points here
 7f 00 00 00  00 00 00 00 a7 7f 00 00  f0 f1 a5 8f a7 7f 00 00  00 00 00 00 00 00 00 00  0b 00 00 00
              ^ 
=================================================================
==47902==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff326b0168 at pc 0x563195576a74 bp 0x7fff326af1d0 sp 0x7fff326af1c0
READ of size 1 at 0x7fff326b0168 thread T0
    #0 0x563195576a73 in main (/out/package/lab4+0xca73)
    #1 0x7fa78d3f1b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #2 0x56319557a509 in _start (/out/package/lab4+0x10509)

Address 0x7fff326b0168 is located in stack of thread T0 at offset 3656 in frame
    #0 0x56319557290f in main (/out/package/lab4+0x890f)

  This frame has 10 object(s):
    [32, 1632) 'num'
    [1664, 3264) 'stacki'
 

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

250.000000
0.500000
250.000000
62253.000000
64.000000
7091.000000
2.550000
-2490.000000
-22.350000