You are viewing a single comment's thread. Return to all comments →
int n; cin >> n; vector<int> numbers(n); for (int i = 0; i < n; i++) { cin >> numbers[i]; } sort(numbers.begin(), numbers.end()); for (int i = 0; i < n; i++) { cout << numbers[i] << " "; } cout << endl;
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 →