const int cntVrt = obtTotVrt();
const int totSal = obtTotAdy(vrt);
const int totEnt = obtTotAdyEntrantes(vrt);
const int cntVecinos = totSal + totEnt;
int vecinos[cntVecinos];
Last line throws the error, Im using a const but I read it depends on compiler? How can I fix that using simple arrays?
PS. I was using Netbeans but swapped to VS to track down a bug where an object pointed to by an "int * array" changes values and now Im getting this error.