Write a program below |
#include <algorithm>
#include <iterator>
#include <iostream>
#include <vector>
using namespace std;
int n;
vector<int>Array(0);
vector<int>::iterator a, b;
int main() {
cin >> n;
Array.resize(n);
for (int i = 0; i < Array.size(); i++)
cin >> Array.at(i);
|
|
sort(a, b);
for (int i = 0; i < Array.size(); i++)
cout << Array.at(i) << " ";
}
|