std::cout << “\nPlease key in the length of your array”;
std::cin >> length;
Array size has to be known at compile time i think
Itd be nice if you gave the error and used
You need to include " using namespace std; " before the main function and you need to declare the array before you refer to it.
It's not about the array.
Pasting the code to C::B gave a lot of errors related to characters encoding. I think they are the quotes and semicolons