im trying to create a 2D array using a random generator but the compiler keeps giving me compiling error no matter how i modify the calling function
#include <iostream>
#include <ctime>
using namespace std;
const int MAX = 4;
void constructArray (int a [][MAX], int);
int main()
{
int a [MAX];
srand (time (NULL));
constructArray (a [][MAX], MAX);
}
void constructArray (int a [][], int size)
{
for (int i = 0; i < size; i++)
a [i][size] = rand () % 10;
}