SyntaxFix
Write A Post
Hire A Developer
Questions
You haven't reserved enough space in your vector object to hold the contents of your set.
std::vector<double> output(input.size()); std::copy(input.begin(), input.end(), output.begin());