check odd numbers numpy

#include <iostream>
#include <vector>
#include <algorithm>

int main() {
    // Create a vector to store numbers
    std::vector<int> numbers = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

    // Use the std::copy_if algorithm to copy odd numbers to a new vector
    std::vector<int> oddNumbers;
    std::copy_if(numbers.begin(), numbers.end(), std::back_inserter(oddNumbers), [](int num) { return num % 2 != 0; });

    // Display the original vector
    std::cout << "Original numbers: ";
    for (int num : numbers) {
        std::cout << num << " ";
    }
    std::cout << std::endl;

    // Display the vector containing odd numbers
    std::cout << "Odd numbers: ";
    for (int num : oddNumbers) {
        std::cout << num << " ";
    }
    std::cout << std::endl;

    return 0;
}