错误数组绑定不是']'标记之前的整数常量

Error array bound is not an integer constant before ']' token

我做错了什么? 错误数组边界不是']'标记

之前的整数常量
   using namespace std;

bool cars_present[20];
int count = 0;
void sortArrayIntegers(int IDs[count]);

struct date
{
   int day, month, year;
};

struct car
{
   int ID;
   char owner_name[20], owner_surname[20], make[20], model[20], phone_number[10];
   struct date reg_date, ns_date;
}car_directory[100];
void sortArrayIntegers(int IDs[count]);

请尝试将此行更改为

void sortArrayIntegers(int IDs[]);

您无需在此处提供值