-std=c++11 编译器设置

 range-based 'for' loops are not allowed in C++98 mode

原文地址:https://www.cnblogs.com/ewitt/p/14956718.html