voidsolve(){intn, ans =0;cin >> n;vector<int>a(n +1),b(n +1);for(inti =1; i <= n; i++) {cin >> a[i];}for(intt =0; t <=30; t++) {for(inti =1; i <= n; i++) {b[i] = (a[i] >> t) &1;}intx =0, res =0;// the number of 1sintcnt[2] = ...