Im currently doing a programming project, and I've come across a problem while compiling... I have this code made in C++:
scanf("%d %d", &number, &shares);
vector<int> graph[number];
I read the variable number, and use it to initialise the size of the array. But this produces a initialising problem,
variable length array of non-POD element type
vector<int>
Anyone knows what I can do to solve this?