3,972 questions
Try something like this:
pthread_t thread_group[MAX_CORES];
or
pthread_t *thread_group = new pthread_t[MAX_CORES];
or
pthread_t *thread_group = (pthread_t*)malloc(sizeof(pthread_t) * MAX_CORES);
Or change the file extension to .c.