// NOTE:
// DO NOT USE THIS WAY OF DEFINING ARRAYS - this does not work correctly
// Use flags in g++ to avoid this problem
// If using Visual Studio it will not allow this at all, if on linux, buyer beware

#include <iostream>
using namespace std;

int main()
{
        int x;
        cin >> x;
        int myArray[x];
        cout << "Hello";
        return 0;
}

// [dfowler@mt-r206-01 Desktop]$ g++ -pedantic hello.cpp
// hello.cpp: In function ‘int main()’:
// hello.cpp:8: warning: ISO C++ forbids variable length array myArray
// [dfowler@mt-r206-01 Desktop]$ 

// TIPS FOR CLEANER CODE
// 1. Follow instructions/guidelines/coding standards
// 2. Use an IDE you are comfortable with
// 3. Use flags to ensure your code will be compatible
//      -pedantic
//      -Wall
//      -Wextra
//      -Wuninitialized
//
// Note that -Wall is used in most IDE's and pedantic avoids the wrong use of arrays
//

