Please use `Range Loop`: `for(const auto& e : yourVector)`