I have tried to make an array of a struct I have defined like in Creating an array of structs in C++ but I get an `no matching function to call to Simplex::simplex()' error. What is going wrong? Underneath is (what I think is) the relevant code. The error is in the Simplex simplices[numberOfSimplices] line.
struct Simplex {
public:
    int dimension;
    long* vertices;
    // Constructor definition
    Simplex(int d, long* v) {
        dimension = d;
        vertices = v;
    }
};
void f() {
    // Initializing random seed
    srand(time(NULL));
    long numberOfSimplices = rand() % maxSimplices + 1;
    Simplex simplices[numberOfSimplices];
}
 
    