#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
using namespace std;
const int maxn=10010;
//获取 数组,字符型,整形,浮点型 ,向量,结构体数组中的最大或者最小的那个值
//min_element(a,a+n) max_element(a,a+n,cmp)
//这两个函数在algorithm 里面,都是将目标从小到大排序,然后最小的是输出头一个,最大的是输出最后一个
//如果数据类型存的是结构体,可以定义自定义的排序的方法,如例子,从中找出x最小的那个结构体并输出其y
//对应到题上 就可以是找到年领最小的然后输出其学号
struct node{
int x,y;
};
bool cmp(node a,node b){
return a.x<b.x;
}
int main(){
vector<int> v(3);
int a[]={9,5,7,3,10,50,-1};
string str[]={"adsfdsf","cvsbdfbfdb","dgdsg","aaaaaaaa"};
vector<node> v1(3);
cout<<(*max_element(v.begin(),v.end()))<<endl;
cout<<(*max_element(a,a+7))<<endl;
cout<<(*min_element(str,str+4))<<endl;
cout<<(*min_element(v1.begin(),v1.end(),cmp)).y<<endl;
cout<<a[0]<<a[1]<<a[2];
}