As what is pointed out in the comments, you need to add the flag -std=c++0x
. You can set it in the "Build" -> "Set build commands", then modify the commands in following boxs:
Compile:
g++ -Wall -std=c++0x -c "%f"
Build:
g++ -Wall -std=c++0x -o "%e" "%f"