hi guys I'm just wondering why this code won't work I get an error when I try to pass in an array,I set the parameters to take an array yet I get an error I'm not sure why? fillArray(int arrayy[30]); is where I get the error.
#include <iostream>
usingnamespace std;
constint MAX = 20;
int numberOfStudents = 0;
void fillArray(int x[]){
int output;
int i;
cout << "enter scores of students type -1 to quit";
cin >> output;
while(output != -1){
cin >> output;
numberOfStudents++;
x[i];
i++;
}
}
int main()
{
int arrayy[30];
fillArray(arrayy);
}