Open Zjsik opened 2 months ago
You can debug to see where the subscripte is out of range,and then send it to me
---Original--- From: @.> Date: Thu, Jun 27, 2024 18:01 PM To: @.>; Cc: @.***>; Subject: [xiandenis/WLOP] vector subscript out of range (Issue #3)
Hello, I encountered the error "vector subscript out of range" while running the code. How can I change this?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
const auto sample_kd_tree = create_Kdtree (sample_points);
std::cout << "1";
std::vector<double> samples_density(sample_points.size() + 1, 0.0);
std::cout << sample_points.size();
system("pause");
for (int i = 0 ; i < (int)sample_points.size() ; ++i)
{
samples_density.at(i) = compute_density_weight_for_sample_point(sample_kd_tree, sample_points.at(i), mRadius);
//std::cout << i << std::endl;
}
It should have been an error in the first round.
Hello, I encountered the error "vector subscript out of range" while running the code. How can I change this?