How run C++ file on terminal In the first step, you have to compile your code, which is done with g++! g++ main.cpp -o outer And in the next step, we must run the compiled file! ./outer