Error reporting:
reason: the solutions of the two problems are similar. I directly pasted the previous one and changed it. As a result, the names of main functions are different, resulting in compilation errors. Just change the main function
to: