enter code here
int n , i , a ; cin>>n ; vector v(n+1) , index(n+1) ; for(i=0;i>a ; v[a]++ ; index[a]=i+1; }