Write a program below |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool cmp(int first, int second) {
|
|
}
int main() {
int N;
cin >> N;
vector<int> A (N);
for(int i = 0; i < N; i++)
cin>>A[i];
sort(A.begin(), A.end(), cmp );
for(int i = 0;i< N; i ++)
cout<<A[i]<<" ";
}
|