I need your help to solve this problem
int main()
{
int i, n;
cout << "\nEnter The Number of Players\n\n";
cin >> n;
chess player[n];
for (i = 0; i < n; i++)
{
cout << "\nEnter details of " << i + 1 << " Player" << endl;
the error says expression must have constant value and expression did not evaluate to a constant
If someone could help me that would be great