I am using the latest MinGW to compile my c++ code with g++ compiler on Windows 10. The code compiles without errors but when I run the execution file it gives the error:
It's most likely that you have an old compiler version that does not yet natively support C++11. Try compiling with -std=c++11. Otherwise update compiler.