New course! Every coder should learn Generative AI!
Try a free lesson+ 1
So far I've fixed your compiler errors and your linker errors (missing function). I need an example of your inputs and expected outputs to know how to fix your runtime errors. Changes are marked with capitalized comments.
https://code.sololearn.com/cE6SVjDlMK0V