I want to create an array of vectors, in each vector there are stored integers. Here in the code the hashBucket and table are defined. But i dont know how to write the constructor and initialize the array with empty vectors. Could someone help me out?
A vector will already be initialized by default to be empty, so your for loop is not necessary.
The bigger issues are:
(1) non-const static variables need to be initialized outside of the class itself (or with the inline keyword starting with C++17)
(2) You are trying to create static, contiguous memory for 4,294,967,295 ints. This is HUGE, like 16 GB of contiguous memory needed. It doesn't even build for me because there isn't room in bss (zero-init'd memory spot).