Go: package main

import (
	"fmt"
	"sort"
)

func main() {
	var a, b, c, d, e int
	fmt.Scan(&a, &b, &c, &d, &e)
	dataset := []int{a, b, c, d, e}

	sort.Sort(sort.Reverse(sort.IntSlice(dataset)))
	fmt.Printf("%d %d %d %d %d\n", dataset[0], dataset[1], dataset[2], dataset[3], dataset[4])
}

C++: #include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <cctype>
#include <iostream>
#include <sstream>
#include <vector>
#include <list>
#include <deque>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include <functional>
#include <complex>
using namespace std;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef long long ll;
const double PI = 3.141592653589793238462643383279502884L;
const int LARGE_PRIME = 1000000007;
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define tr(c, i) for(auto i = (c).begin(); i != (c).end(); i++)
#define rtr(c, i) for(auto i = (c).rbegin(); i != (c).rend(); i++)
#define repfn(i,a,cont,next) \
  for(auto i = (a); [=](){return(cont);}(); i = [=](){return(next);}())
#define repby(i,a,b,s) repfn(i,a,i<b,i+s)
#define repab(i,a,b) repby(i,a,b,1)
#define rep(i,b) repab(i,0,b)
#define pb push_back
#define sz(c) int((c).size())

int main(int argc, char **argv)
{
  vi v;
  int tmp;

  rep (i, 5) {
    cin >> tmp;
    v.pb(tmp);
  }
  sort(rall(v));

  tr (v, i) {
    cout << *i;
    if (i+1!=v.end())
      cout << " ";
  }
  cout << endl;

  return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;

int main()
{
    int i,a[5];
    for(i=0;i<5;i++)
        cin>>a[i];
    sort(a,a+5);
    for(i=4;i>0;i--)
        cout<<a[i]<<" ";
    cout<<a[i]<<endl;
    return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main(){
	char ch[5];
	for( int i = 0; i < 5; i++ ){
		cin >> ch[i];
	}
	sort(ch, ch+4, greater<int>());
	for( int i = 0; i < 4; i++ ){
		cout << ch[i] << " ";
	}
	cout << ch[4] << endl;
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main(){
	int a[5];
	for(int i=0;i<5;i++){
		cin>>a[i];
	    }
	sort(a,a+5);
	reverse(a,a+5);
	cout<<a[0];
	for(int j=1;j>=5;j++){
		cout<<" "<<a[j];
	    }
	cout<<endl;
	return 0;
	}

C++: #include <algorithm>
#include <cstdio>
#include <iostream>
#include <cstdlib>

using namespace std;

int arr[5];

int main()
{
	for(int a=0;a<5;a++)
	{
		scanf("%d",&arr[a]);
	}
	sort(arr,arr+5);
	for(int a=4;a>=0;a--)
	{
		printf("%d",arr[a]);
		printf(" ");
	}
	printf("\n");
	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <functional>
#include <complex>

using namespace std;

const double PI=3.14159265;

int main()
{
	int v[5];

	srand((unsigned)time(NULL));

	for(int i=0;i<5;i++) cin>>v[i];

	do{
		for(int i=0;i<5;i++) swap(v[i],v[rand()%5]);

	}while(!( (v[0]>=v[1])&&(v[1]>=v[2])&&(v[2]>=v[3])&&(v[3]>=v[4]) ));

	for(int i=0;i<4;i++) cout<<v[i]<<" ";
	cout<<v[4]<<endl;

	return 0;
}

C++: #include<iostream>
#include<algorithm>

using namespace std;

int a[5];
int main() {
	for (int i = 0; i < 5; i++) {
		cin >> a[i];
	}
	sort(a,a+5);
	for (int i = 4; i >= 0; i--) {
		cout << a[i];
		if (i == 0)cout << endl;
		else cout << " ";
	}

	return 0;

}

C++: #include <iostream>
#include <algorithm>
#include <functional>

using namespace std;

int main()
{
    int input[5];

    for (int i = 0; i < 5; i++)
        cin >> input[i];

    sort(input, input + 5, greater<int>());

    cout << input[0] << " " << input[1] << " " << input[2] << " " << input[3];
    cout << " " << input[4] << endl;

    return 0;
}

C++: #include <iostream>
#include <algorithm>
using std::cin;
using std::cout;
using std::endl;
using std::sort;
using std::greater;

int main() {
	const int N = 5;
	int num[N];
	for (int i = 0; i < N; ++i) {
		cin >> num[i];
	}
	sort(num, num + N, greater<int>());
	for (int i = 0; i < N; ++i) {
		cout << num[i];
		if (i == N - 1) {
			cout << endl;
		} else {
			cout << ' ';
		}
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(void){
	int input[5];
	for(int i=0;i<5;i++){
		cin >> input[i];
	}
	for(int i=0;i<5;i++){
		for(int j=0;j<5;j++){
			if(input[i]>input[j]){
			int tmp = input[i];
			input[i] = input[j];
			input[j] = tmp;
			}
		}
	}
	for(int i=0;i<4;i++){
		cout << input[i] << " ";
	}
	cout << input[4] << endl;
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using lint = long long int;
using ulint = unsigned long long int;
template<class T = int> using V = vector<T>;
template<class T = int> using VV = V< V<T> >;
template<class T, class U> void assign(V<T>& v, int n, const U& a) { v.assign(n, a); }
template<class T, class... Args> void assign(V<T>& v, int n, const Args&... args) { v.resize(n); for (auto&& e : v) assign(e, args...); }


int main() {
  cin.tie(nullptr); ios_base::sync_with_stdio(false);
  V<> a(5); for (int i = 0; i < 5; ++i) cin >> a[i];
  sort(rbegin(a), rend(a));
  for (int i = 0; i < 5; ++i) {
    cout << a[i] << (i != 4 ? ' ' : '\n');
  }
}

C++: #include<stdio.h>

int main(void)
{
	int a,b,c,d,e,x[5],t=0;
	scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);

	for(t;t<5;t++)
	if(a>=b&&a>=c&&a>=d&&a>=e)
	{
		printf("a");
		x[t]=a;
		a=-1;
	}
	else if(b>=c&&b>=d&&b>=e)
	{
			printf("b");
		x[t]=b;
		b=-1;
	}
	else if(c>=d&&c>=e)
	{
			printf("c");
		x[t]=c;
		c=-1;
	}
	else if(d>=e)
	{
			printf("d");
		x[t]=d;
		d=-1;
	}
	else
	{
			printf("e");
		x[t]=e;
		e=-1;
	}

	for(t=0;t<5;t++)
	{
		printf("%d ",x[t]);
	}
	return 0;
}

C++: #include <iostream> 
#include <cstdio>
#include <algorithm>
using namespace std;
int main(){
	int a[5];
	for(int i=0;i<5;i++){
		cin>>a[i];
	}
	sort(a,a+5);
	for(int i=0;i<5;i++)
		printf("%d%c",a[i],i==4?'\n':' ');
    return 0;
}

C++: #include<iostream>
using namespace std;

inline void swap(int *a,int *b){
  int *tmp;
  tmp = a;
  a = b;
  b = tmp;
}

int main()
{
  int i,j,max;
  int a[5];

  while(cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4]){
    for(i=0;i<4;i++){
      max = i;
      for(j=i+1;j<5;j++){
	if(a[max]<a[j])max = j;
      }
      swap(a[i],a[max]);
    }
    for(i=0;i<4;i++)cout << a[i] << " ";
    cout << a[4] << endl;
  }

  return 0;
}

C++: #define _USE_MATH_DEFINES
#include <iostream>
#include <queue>
#include <vector>
#include <math.h>
#include <algorithm>
#include <iomanip>
#include <string>
#include <stack>
using namespace std;

int main(){
	priority_queue<int> q;
	for (int i = 0; i < 5; ++i) {
		int a;
		cin >> a;
		q.push(a);
	}
	for (int i = 0; i < 5; ++i) {
		cout << q.top();
		if (i != 4) cout << ' ';
		q.pop();
	}
	return 0;
}

C++: #include <bits/stdc++.h>
#include <vector>
using namespace std;
int a[9], h;
int main(){
	for(int i = 1; i <= 5; i++){
		cin >> a[i];
	}
	for(int i = 1; i <= 4; i++){
		for(int u = 5; u > i; u--){
			if(a[u] > a[u-1]){
				h = a[u];
				a[u] = a[u-1];
				a[u-1] = h;
			}
		}
	}
	for(int i = 1; i <= 5; i++){
		if(i == 5)
			cout << a[i] << "\n";
		else
			cout << a[i] << " ";
	}
	return 0;
}

C++: #include <iostream>
#include <set>
using namespace std;

int main() {
	multiset<int, greater<int>> ms; int temp;
	for (int i = 0; i < 5; i++) { cin >> temp; ms.insert(temp); }
	for (auto itr = ms.begin(); itr != ms.end(); itr++) {
		cout << *itr << (itr != --ms.end() ? " " : "");
	}
	cout << endl;
	return 0;
}

C++: #include<stdio.h> 

int main(void) 
{
	
	int i,j,temp;
	int data[5];
	
		
	for(i=0;i<5;i++){
		scanf("%d",&data[i]);
			}

		for(i=0;i<4;i++){
			for(j=i+1;j<5;j++){
				if(data[i]<data[j]){
					temp=data[i];
					data[i]=data[j];
					data[j]=temp;
				}
			}
		}
		
		for(i=0;i<4;i++){
			printf("%d ",data[i]);
		}

		printf("%d\n",data[5-1]);

		return 0;
}