Cannot compile c++ on a new project UE 5.1.1

Yep, that worked perfectly, thank you so much. I Just deleted the intermediate, binaries, etc. Opened just the visual studio without opening the editor and had a successful build.