int main() { int a[63]={1,4,5,12,3,4,4,21,3}; sort(a,a+9); int n=unique(a,a+9)-a; for(int i=0;i<n;i++) cout<<a[i]<<endl; }