2D array for bit representation of all the numbers . Initially all bits are set to 0.
int bits [ n ] [ 33 ] ; memset ( bits , 0 , sizeof ( bits ) ) ; for ( int i = 0 ; i < n ; ++ i ) { int num = a [ i ] ; int j = 32 ;