Vector C++

#include 
#include 
#include 
using namespace std;
int main(int argc, char** argv)
{
  int elems[] = {5, 6, 9, 8, 8, 3};
  vector myVector(elems, elems + 6); 
  vector::const_iterator it, it2;  
  // Find the first pair of matching consecutive elements
  it = adjacent_find(myVector.begin(), myVector.end());
  if (it != myVector.end()) {
    cout << "Found two consecutive equal elements of value " << *it << endl;
  }
  return (0);
}