#include using namespace std; int main(){ int n=10; int a[n]; for (int i=0; i
That is C99 feature that allows VLA (variable length array).
Compile it with g++ -pedantic, I'm sure that wouldn't compile.
g++ -pedantic