class A{
    int V;
public:
    bool function(){
        bool ar[V];
    }
}
i am getting an 'this cannot be used in a constant expression' error at the V variable :bool ar[V];
class A{
    int V;
public:
    bool function(){
        bool ar[V];
    }
}
i am getting an 'this cannot be used in a constant expression' error at the V variable :bool ar[V];