Record Case Detail

Notes

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

Stderr

/in/lab5.c:57:46: runtime error: index 120 out of bounds for type 'char [120]'
/in/lab5.c:57:50: runtime error: store to address 0x7ffd803dfc18 with insufficient space for an object of type 'char'
0x7ffd803dfc18: note: pointer points here
 00 00 00 00  60 fc 3d 80 01 00 00 00  b0 04 3e 80 fd 7f 00 00  80 00 00 00 60 61 00 00  70 03 3e 80
              ^ 
=================================================================
==647==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd803dfc18 at pc 0x55c0c6a17b4f bp 0x7ffd803dfaf0 sp 0x7ffd803dfae0
WRITE of size 1 at 0x7ffd803dfc18 thread T0
    #0 0x55c0c6a17b4e in printd (/out/package/lab5+0x7b4e)
    #1 0x55c0c6a15453 in main (/out/package/lab5+0x5453)
    #2 0x7f16149d6c86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
    #3 0x55c0c6a158d9 in _start (/out/package/lab5+0x58d9)

Address 0x7ffd803dfc18 is located in stack of thread T0 at offset 152 in frame
    #0 0x55c0c6a160bf in printd (/out/package/lab5+0x60bf)

  This frame has 1 o

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.000250
-0.250000
0.888889
-3.777800
777.375000
64.000000
4.160000
2.550000
128.000000