C++ LITTLE BIT OF WORK

I’ve done all of my code in the .pdf file, but I’m stuck with one part which is testing my code. I need help fixing that. I’ve uploaded the pdf file and my work as zip file as well. You can see everything on that. Just read the testing part in the pdf file. Also, the sample output and input files.