To use the output operator, you must inform the C++ compiler that you plan to use C++'s standard inputoutput library by including the following line in your program:
#include
There is more to be said about such lines; for now, however, just include the prescribed line before the first instance of the output operator appears.