[C++] Large Number Array

#include <iostream>
using namespace std;

void maxint (int array[], int size);

int main()
{
    int n;
    const int x = 0;
    int array[x];
    cout << "How many elements do you want your array to hold?" << endl;
    cin >> n;
    maxint(array, n);
    return 0;
}
void maxint(int array[], int size)
{
    int maxE = 0;
    cout << "Please enter " << size << " elements for the array:" << endl; 
    for (int x = 0; x < size; x++)
    {
        if (maxE > array[x]) {
            maxE = array[x]
        }
    }
    cout << "The largest number is: " << maxE << endl;
}