Notes
This function is in beta test. Please help improve it in the issues
here.
/in/lab5.c:113:27: runtime error: index 120 out of bounds for type 'char [120]' /in/lab5.c:113:49: runtime error: index 641 out of bounds for type 'char [120]' /in/lab5.c:113:27: runtime error: load of address 0x7ffdd401ee00 with insufficient space for an object of type 'char' 0x7ffdd401ee00: note: pointer points here 5c 7f 00 00 20 95 4b 52 5c 7f 00 00 37 3e fb 51 5c 7f 00 00 e0 62 1e 52 5c 7f 00 00 00 00 00 00 ^ ================================================================= ==4461==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffdd401ee00 at pc 0x55d73dac30df bp 0x7ffdd401bc90 sp 0x7ffdd401bc80 READ of size 1 at 0x7ffdd401ee00 thread T0 #0 0x55d73dac30de in main (/out/package/lab5+0x120de) #1 0x7f5c51bc9c86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86) #2 0x55d73dac6819 in _start (/out/package/lab5+0x15819) Address 0x7ffdd401ee00 is located in stack of thread T0 at offset 12352 in frame #0 0x55d73dabde2f in main (/out/package/lab5+0xce2
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