#include #include #include #include #include using std::ifstream; using namespace std;
You cannot have variable length arrays (as they are called in C99) in C++. You need to use dynamically allocated arrays (if the size varies) or a static integral constant expression for size.