I have this code:
size_t count = new_data.size();
std::cout << "got the count: " << count << std::endl;
double g_x[count];
std::cout << "First array done\n";
double g_y[count];
std::cout << "Allocated array of size" << count << std::endl;
which gives me the output:
got the count: 1506538
Segmentation fault: 11
I honestly don't understand why. It work on another data set, but not on this one.