You are viewing a single comment's thread. Return to all comments →
I tried this code.. And it's working
int main()
{
vector<int> v; int size; cin>>size; int a; for(int i=0;i<size;i++) { cin>>a; v.push_back(a); } sort(v.begin(),v.end()); for(int i=0;i<size;i++) { cout<<v[i]<<" "; } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Vector-Sort
You are viewing a single comment's thread. Return to all comments →
I tried this code.. And it's working
int main()
{
}