I'm getting an error with this code. Both the findMax and findMin lines in main say "Invalid conversion from 'int' to 'int*'". What does it mean?

```
#include <iostream>
using namespace std;
int findMax(int[],int);
int findMin(int[],int);
int main ()
{
int max, min, x;
findMax(max,x);
findMin(min,x);
return 0;
}
int findMax(int a[], int n)
{
cout << "How many numbers would you like to enter? ";
cin >> n;
int max;
max=a[n];
for(int i=0; i<n; i++)
{
if(max>a[i])
max=a[i];
}
return max;
}
int finMin(int a[], int n)
{
cout << "How many numbers would you like to enter? ";
cin >> n;
int min;
min=a[n];
for(int i=0; i<n; i++)
{
if(min<a[i])
min=a[i];
}
return min;
}
```