Removed range based for loop from C01Q01 since it's only available in C++11.