Notes
This function is in beta test. Please help improve it in the issues
here.
/in/lab4.c:209:30: runtime error: index 1024 out of bounds for type 'char [1024]' /in/lab4.c:209:22: runtime error: load of address 0x7ffd1fc0b2e0 with insufficient space for an object of type 'char' 0x7ffd1fc0b2e0: note: pointer points here e3 7f 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 e0 e9 a1 ef ^ ================================================================= ==49372==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd1fc0b2e0 at pc 0x561da92fe2f9 bp 0x7ffd1fc0a8c0 sp 0x7ffd1fc0a8b0 READ of size 1 at 0x7ffd1fc0b2e0 thread T0 #0 0x561da92fe2f8 in main (/out/package/lab4+0x62f8) #1 0x7fe3ed3afb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #2 0x561da92fe769 in _start (/out/package/lab4+0x6769) Address 0x7ffd1fc0b2e0 is located in stack of thread T0 at offset 2400 in frame #0 0x561da92fc7df in main (/out/package/lab4+0x47df) This frame has 6 object(s): [32, 36) 'i' [96, 108) 'topOp' [16
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