Review this C++ loop meant to compare adjacent elements of a vector (it should do nothing for an empty vector).