im very new to c++ and every time i try to compile and run a program, the error “The preLaunchTask ‘C/C++: clang++ build active file’ terminated with exit code -1.”
shows up. Im using vs code on a apple silicone mac with clang compiler, and the code that i was trying to run was
#include <iostream>
int Main()
{
std::cout << "Hon, Hon, Hon. Baguette";
return 0;
}
I tried searching up solutions, but they either don’t apply to me or doesn’t work.
Thanks for reading.
Kalid Cai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.