#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool complare(int a,int b){
return a>b;
}
int main(int argc, char *argv[])
{
vector<int> vec;
for(int i = 0;i<10;++i){
int s;
cin>>s;
vec.push_back(s);
}
sort(vec.begin(),vec.end());
vec.erase(unique(vec.begin(),vec.end()),vec.end());
for(vector<int>::iterator it=vec.begin();it!=vec.end();++it){
cout<<*it<<" ";
}
cout<<endl;
return 0;
}
iotek@iotekclass:~/pwz1903C++/Depa/面试题/方凌计算机$ g++ test5.cpp -Wall
iotek@iotekclass:~/pwz1903C++/Depa/面试题/方凌计算机$ ./a.out
2 2 1 1 6 5 4 4 3 1
1 2 3 4 5 6
iotek@iotekclass:~/pwz1903C++/Depa/面试题/方凌计算机$