Hello, as the title says, I keep getting this error starting in line 14 and beyond. Int n gives me the error "expression must have constant value". I've researched this error message, but need a nudge in the right direction.
The compiler wants the n variable to be a constant (e.g. constint n = 20;) since you're using n to size arrays.
Since you're actually not going to know the size until the user enters it, you need to dynamically allocate the array with new- http://www.cplusplus.com/doc/tutorial/dynamic/ (and later deallocate with delete)