compare values within within a vector c++

C++
for (unsigned int i = 1; i < myVector.size(); i++) 
{
    if (myVector[i].size() == myVector[i-1].size()) // .size() should be used
    {
        cout << "SAME SIZE" << endl;
    }
}
Source

Also in C++: