默认情况下,Dev-C++ 不支持 C++ 11 标准。\n若需 Dev-C++ 支持 C++ 11 标准,需要在 Dev-C++ 中的“Compiler Options”选项中设置“Add the following commands when calling the compiler:” 的内容为 “-std=c++11”。
用code就没这麻烦了