Notes
This function is in beta test. Please help improve it in the issues
here.
/in/lab5.c:182:14: runtime error: index -1 out of bounds for type 'char [120]' ================================================================= ==4798==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fffce3ccf6f at pc 0x55d720101d72 bp 0x7fffce3ccc80 sp 0x7fffce3ccc70 READ of size 1 at 0x7fffce3ccf6f thread T0 #0 0x55d720101d71 in RPE (/out/package/lab5+0xdd71) #1 0x55d7200fd714 in main (/out/package/lab5+0x9714) #2 0x7f15def5ac86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86) #3 0x55d7200fe079 in _start (/out/package/lab5+0xa079) Address 0x7fffce3ccf6f is located in stack of thread T0 at offset 543 in frame #0 0x55d7200fe31f in RPE (/out/package/lab5+0xa31f) This frame has 2 object(s): [32, 512) 'minus' [544, 664) 'stack' <== Memory access at offset 543 underflows this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: Addres
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
0.010000 250.000000 250.000000 62253.000000 64.000000 7091.000000 2.550000 -22.350000