use g++ -fopenmp openmp.cpp