Unsigned underflow in loop

Code reviewHard16 min

Your task

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