Dev C++ [Error] range-based 'for' loops are not allowed in C++98 mode 1 2 3.3、在gcc 和g++ 添加 -std=c++11 然后就好了