1, using cout in C++ standard library ,you need:
#inlcude <iostream> // include iostream file
using namespace std;// c++ standard lib
2, using g++ compiler c++ test file, like as:
g++ main.cpp -o main // build main.cpp to main file
./main // run main file