Recently I ran a code, to change the color of the output in the terminal. After running that c++ program, now if I run any c++ program in Linux I am getting some weird errors. I have attached the error picture.

Recently I ran a code, to change the color of the output in the terminal. After running that c++ program, now if I run any c++ program in Linux I am getting some weird errors. I have attached the error picture.

You appear to be trying to link a C++ program with gcc, which does not automatically link against the C++ standard library. Try using g++ instead.