Notes
This function is in beta test. Please help improve it in the issues
here.
/in/lab5.c:209:18: runtime error: index 120 out of bounds for type 'double [120]' /in/lab5.c:209:22: runtime error: store to address 0x7ffd1c5cf9d0 with insufficient space for an object of type 'double' 0x7ffd1c5cf9d0: note: pointer points here 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 00 00 00 00 ^ ================================================================= ==5124==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd1c5cf9d0 at pc 0x5648bae385fe bp 0x7ffd1c5cf080 sp 0x7ffd1c5cf070 WRITE of size 8 at 0x7ffd1c5cf9d0 thread T0 #0 0x5648bae385fd in main (/out/package/lab5+0x105fd) #1 0x7f727728dc86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86) #2 0x5648bae3b339 in _start (/out/package/lab5+0x13339) Address 0x7ffd1c5cf9d0 is located in stack of thread T0 at offset 2080 in frame #0 0x5648bae3395f in main (/out/package/lab5+0xb95f) This frame has 14 object(s): [32, 40) 'ptr' [96, 576) 'helper
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