Trying to sort number from highest to lowest, but using the code below, with the help from the link. There are some mistake in here I know, but need alittle help.

Code:
#include <iostream>

using namespace std;
int desent( int list[], int size )
{
  int i;
  int max = list[0];

  for ( i = 1; i < size; i++ ) 
  {
    if ( list[i] > max )
      max = list[i];
  }

  return max;
}

int main()
{
	int list[12];
    
	for(int i = 0; i < 12; i++)
	{
	cout << "What are the numbers" << i << "?";
	cin >> list[i];
	}
	
	cout << "The numbers sorted "<< desent << endl;  
	
	
	cin.get();
	cin.ignore();

}