#include
#include
#include
using namespace std;
int getMaxInt(vector& v) {
return *max_element(v.begin( ), v.end( ));
}
int getMinInt(vector& v) {
return *min_element(v.begin( ), v.end( ));
}
int main( ) {
vector v;
for (int i=10; i < 20; ++i) v.push_back(i);
cout << "min integer = " << getMinInt(v) << endl;
cout << "max integer = " << getMaxInt(v) << endl;
}
/*
min integer = 10
max integer = 19
*/