Language: C++

#include<bits/stdc++.h>
using namespace std;

#define rep(i,n) for(int i=0,i##_len=(n);i<i##_len;i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define all(a) (a).begin(),(a).end()
typedef vector<int> vi;
typedef long long ll;

#define maxn 200000

int a[maxn],b[maxn],c[maxn],d[max];

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int n; cin >> n;
  rep(i,n) cin >> a[i];
  rep(i,n) cin >> b[i];

  int ans = 0;

  rep(k,30){ // k bit目
    ll tmp = 0; // k bit目が1の数
    ll t = 1ll << k;
    rep(i,n){
      c[i] = a[i] % (2 * t);
      d[i] = b[i] % (2 * t);
    }
    sort(d, d + n);
    rep(i,n){ // a_i
      tmp += lower_bound(all(d),2*t-c[i]) - lower_bound(all(d),t-c[i]);
      tmp += lower_bound(all(d),4*t-c[i]) - lower_bound(all(d),3*t-c[i]);
    }
    if(tmp % 2 == 1) ans += t;
  }

  cout << ans << endl;
}

Compiler output:
a.cc:12:34: error: cannot resolve overloaded function 'max' based on conversion to type 'long unsigned int'
   12 | int a[maxn],b[maxn],c[maxn],d[max];
      |                                  ^
a.cc:12:29: error: size of array 'd' has non-integral type '<unresolved overloaded function type>'
   12 | int a[maxn],b[maxn],c[maxn],d[max];
      |                             ^
a.cc: In function 'int main()':
a.cc:6:20: error: request for member 'begin' in 'd', which is of non-class type 'int [1]'
    6 | #define all(a) (a).begin(),(a).end()
      |                    ^~~~~
a.cc:33:26: note: in expansion of macro 'all'
   33 |       tmp += lower_bound(all(d),2*t-c[i]) - lower_bound(all(d),t-c[i]);
      |                          ^~~
a.cc:6:32: error: request for member 'end' in 'd', which is of non-class type 'int [1]'
    6 | #define all(a) (a).begin(),(a).end()
      |                                ^~~
a.cc:33:26: note: in expansion of macro 'all'
   33 |       tmp += lower_bound(all(d),2*t-c[i]) - lower_bound(all(d),t-c[i]);
      |                          ^~~
a.cc:6:20: error: request for member 'begin' in 'd', which is of non-class type 'int [1]'
    6 | #define all(a) (a).begin(),(a).end()
      |                    ^~~~~
a.cc:33:57: note: in expansion of macro 'all'
   33 |       tmp += lower_bound(all(d),2*t-c[i]) - lower_bound(all(d),t-c[i]);
      |                                                         ^~~
a.cc:6:32: error: request for member 'end' in 'd', which is of non-class type 'int [1]'
    6 | #define all(a) (a).begin(),(a).end()
      |                                ^~~
a.cc:33:57: note: in expansion of macro 'all'
   33 |       tmp += lower_bound(all(d),2*t-c[i]) - lower_bound(all(d),t-c[i]);
      |                                                         ^~~
a.cc:6:20: error: request for member 'begin' in 'd', which is of non-class type 'int [1]'
    6 | #define all(a) (a).begin(),(a).end()
      |                    ^~~~~
a.cc:34:26: note: in expansion of macro 'all'
   34 |       tmp += lower_bound(all(d),4*t-c[i]) - lower_bound(all(d),3*t-c[i]);
      |                          ^~~
a.cc:6:32: error: request for member 'end' in 'd', which is of non-class type 'int [1]'
    6 | #define all(a) (a).begin(),(a).end()
      |                                ^~~
a.cc:34:26: note: in expansion of macro 'all'
   34 |       tmp += lower_bound(all(d),4*t-c[i]) - lower_bound(all(d),3*t-c[i]);
      |                          ^~~
a.cc:6:20: error: request for member 'begin' in 'd', which is of non-class type 'int [1]'
    6 | #define all(a) (a).begin(),(a).end()
      |                    ^~~~~
a.cc:34:57: note: in expansion of macro 'all'
   34 |       tmp += lower_bound(all(d),4*t-c[i]) - lower_bound(all(d),3*t-c[i]);
      |                                                         ^~~
a.cc:6:32: error: request for member 'end' in 'd', which is of non-class type 'int [1]'
    6 | #define all(a) (a).begin(),(a).end()
      |                                ^~~
a.cc:34:57: note: in expansion of macro 'all'
   34 |       tmp += lower_bound(all(d),4*t-c[i]) - lower_bound(all(d),3*t-c[i]);
      |                                                         ^~~