Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==4188==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd6ba564b0 at pc 0x55bb0b49e75a bp 0x7ffd6ba4c680 sp 0x7ffd6ba4c670 READ of size 1 at 0x7ffd6ba564b0 thread T0 #0 0x55bb0b49e759 in main (/out/package/lab5+0x5759) #1 0x7f0d0ff37c86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86) #2 0x55bb0b49e7f9 in _start (/out/package/lab5+0x57f9) Address 0x7ffd6ba564b0 is located in stack of thread T0 at offset 40432 in frame #0 0x55bb0b49df9f in main (/out/package/lab5+0x4f9f) This frame has 11 object(s): [32, 8032) 'mark' [8064, 16064) 'mark' [16096, 24096) 'mark' [24128, 24228) 'varname' [24288, 26288) 'source' [26336, 28336) 'varname' [28384, 30384) 'source' [30432, 40432) 'infix' <== Memory access at offset 40432 overflows this variable [40480, 50480) 'nibolan' [50528, 60528) 'nibolan' [60576, 70576) 'nibolan' HINT: this may be a false positive if your pro
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