if you compile your program with the following command
Code:
g++ -o test.o test.cpp
you will get an output file (-o switch) with the name test.o which you can run with the command
This file will be in the same directory as the source code. Using a path you can get a different location.
Your code is using cout which resides in the std namespace and so you will need to modify each cout, what follows is an example of what you will need to do:
Code:
std::cout << "Hello";