#include <iostream>
#include <vector>
#include <list>
#include <deque>
#include <map>
#include <set>
using namespace std;
int main()
{
vector<int> v;
srand(static_cast<unsigned int>(time(nullptr)));
for (int i = 0;i < 100;i++)
{
int randValue = rand() % 100;
v.push_back(randValue);
}
{
int number = 50;
bool found = false;
vector<int>::iterator it;
for (vector<int>::iterator findIt = v.begin();findIt != v.end();++findIt) {
if ((*findIt) == 50)
{
found = true;
it = findIt;
break;
}
}
int a = 3;
}
{
bool found = false; vector<int>::iterator it;
for (vector<int>::iterator findIt = v.begin();findIt != v.end();++findIt) {
if ((*findIt) % 11 == 0)
{
found = true;
it = findIt;
break;
}
}
int a = 3;
}
{
int count = 0;
for (vector<int>::iterator findIt = v.begin();findIt != v.end();++findIt) {
if ((*findIt) % 2 != 0)
{
count++;
}
}
int a = 3;
}
{
for (vector<int>::iterator findIt = v.begin();findIt != v.end();++findIt) {
(*findIt) = (*findIt) * 3;
}
int a = 3;
}
return 0;
}