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 300 out of bounds for type 'char [300]'
/in/lab5.c:57:50: runtime error: store to address 0x7ffd5ec9d7ec with insufficient space for an object of type 'char'
0x7ffd5ec9d7ec: note: pointer points here
  00 00 00 00 29 7f 00 00  06 01 00 00 10 62 00 00  00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
              ^ 
=================================================================
==597==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd5ec9d7ec at pc 0x55a9d839ebf7 bp 0x7ffd5ec9d610 sp 0x7ffd5ec9d600
WRITE of size 1 at 0x7ffd5ec9d7ec thread T0
    #0 0x55a9d839ebf6 in printd (/out/package/lab5+0x7bf6)
    #1 0x55a9d839c4bb in main (/out/package/lab5+0x54bb)
    #2 0x7f2969704c86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
    #3 0x55a9d839c949 in _start (/out/package/lab5+0x5949)

Address 0x7ffd5ec9d7ec is located in stack of thread T0 at offset 332 in frame
    #0 0x55a9d839d12f in printd (/out/package/lab5+0x612f)

  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