C++ 11 extension

I am getting a warning for using for(int x:d);
warning is “warning: range-based for loop is a C++11 extension [-Wc++11-extensions]”

hello @granthdhir

update ur c++ version

sir I am not able to update, if you could help me as I am new to mac

i never used mac, pls refer internet /stackoverflow.