Créez un bits de 1024 bits,

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