In visual studio, I have an error that I didn't have before in Dev-C++:
int project = (rand() % 5) + 1 ;
int P[project][3];
Compilation:
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: 'P' : unknown size
Can you help to understand this error?