Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==47838==ERROR: AddressSanitizer: strcpy-param-overlap: memory ranges [0x55b773c0c100,0x55b773c0c102) and [0x55b773c0c100, 0x55b773c0c102) overlap #0 0x7f6de55f7299 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x66299) #1 0x55b7739e8fe6 in variable (/out/package/lab4+0x3bfe6) #2 0x55b7739c9bce in main (/out/package/lab4+0x1cbce) #3 0x7f6de4102b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #4 0x55b7739cbb39 in _start (/out/package/lab4+0x1eb39) 0x55b773c0c100 is located 0 bytes inside of global variable 'vars' defined in '/in/lab4.c:8:6' (0x55b773c0c100) of size 336 0x55b773c0c100 is located 0 bytes inside of global variable 'vars' defined in '/in/lab4.c:8:6' (0x55b773c0c100) of size 336 SUMMARY: AddressSanitizer: strcpy-param-overlap (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x66299) ==47838==ABORTING
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
Show the results! a * b = 70.910000, b - c + a * f = 13932.010000 ans = -7062633.450000