anyways, why not use the safer std::vector or declare isExecuted a dynamically sized stack variable?