#include <algorithm>
#include <vector>
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
int num = 4;
vector<int> myVector;
myVector.push_back(1);
myVector.push_back(2);
myVector.push_back(3);
myVector.push_back(4);
vector<int>::iterator it = find(myVector.begin(), myVector.end(), num);
if (it == myVector.end()) {
cout << "Could not find " << num << endl;
} else {
cout << "Found " << *it << endl;
}
return (0);
}