Including the cuco library in the cuda runtime project of visual studio will cause a lot of errors

I am trying to compile a CUDA project using Visual Studio 2019. This project only uses thrust to calculate the sum of some integers. It can be compiled and run at this time, but after I included a header file of cuco(line 5 ), hundreds of errors occurred, including undefined identifier errors. What should I do?’

#include <thrust/device_vector.h>
#include <thrust/sequence.h>
#include <thrust/reduce.h>

#include <cuco/static_map.cuh>

#include <thrust/execution_policy.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/logical.h>
#include <thrust/sequence.h>
#include <thrust/tuple.h>

#include <cmath>
#include <cstddef>
#include <iostream>
#include <limits>

int main(void)
{
    const int N = 1000;
    thrust::device_vector<int> d_vec(N);
    thrust::sequence(d_vec.begin(), d_vec.end(), 1);
    int sum = thrust::reduce(d_vec.begin(), d_vec.end());
    std::cout << "Sum of sequence from 1 to " << N << " is: " << sum << std::endl;

    return 0;
}