C++ tutorials like this say that the size of all arrays must be decided upon in advance of the program being run. For example, this is not allowed:
cout << "How many variables do you want? ";
int nVars;
cin >> nVars;
int anArray[nVars]; // wrong! The size of the array must be a constant
But this trivial program does compile and execute fine. Should it?