создать битсет из 1024 бит,

std::bitset<1024 * 1024> my_bitset;
Good Gharial