NZEC Error : FCTRL 2 , It's showing a NZEC Runtime error . Where am I going wrong.Please help me in figuring it out.

using System;
using System.Collections.Generic;
using System.Text;

namespace CodeChef
{
class Program
{

    static int Main(string[] args)
    {
        int t = Int16.Parse(Console.ReadLine());
        int[] sortMe = new int[20];
        
        for (int i = 0; i < t; i++)
        {
            sortMe[i] = Int16.Parse(Console.ReadLine());
        }

        sort(sortMe,t);
        for (int i = 0; i < t; i++)
        {
            Console.WriteLine(sortMe[i]);
        } 
        return 0;
    }

    static int sort(int[] array, int n)
    {
        for (int i = 0; i <n; i++)
        {
            int min=i;
            for (int j = 0; j < n; j++)
            {
                if (array[j] > array[min])
                    min = j;
                int temp=array[i];
                array[i] = array[min];
                array[min] = temp;
                    
                
            } 
           
        }
        return 0;
    }
}

}