I don't think VS Code supports system("cls");, not sure why. Just run the .exe file and use the Windows terminal, and it works.