Forgot the return type of the sequential implementation.
samples and weights are std::vector not just arrays.