Language: C++

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<string.h>
#include<vector>
#include<algorithm>
#define ll __int64
#define maxn 110000
using namespace std;
vector<ll>q[2];
ll x[maxn],y[maxn];
ll bit[100];
int n;
ll solve()
{
    ll ans=0;
    for(ll i=0;i<62;i++)
    {
        ll tot=0;
        q[0].clear();q[1].clear();
        for(ll j=1;j<=n;j++)
            q[(x[j]>>i)&1].push_back(x[j]);
        for(ll j=0;j<q[0].size();j++)
            x[++tot]=q[0][j];
        for(ll j=0;j<q[1].size();j++)
            x[++tot]=q[1][j];
        tot=0;
        q[0].clear();q[1].clear();
        for(ll j=1;j<=n;j++)
            q[(y[j]>>i)&1].push_back(y[j]);
        for(ll j=0;j<q[0].size();j++)
            y[++tot]=q[0][j];
        for(ll j=0;j<q[1].size();j++)
            y[++tot]=q[1][j];
        ll len1=1,len2=1,len3=1;
        ll limit1=1ll<<i;
        ll limit2=1ll<<(i+1);
        ll all=(1ll<<(i+1))-1;
        ll sum=0;
        for(ll j=n;i>=1;i--)
        {
            while((((x[j]&all)+(y[len1]&all))<limit1) && (len1<=n)) len1++;
            while((((x[j]&all)+(y[len2]&all))<limit2) && (len2<=n)) len2++;
            while(((x[j]&all)+(y[len3]&all)<limit1+limit2) && (len3<=n)) len3++;
            sum+=n-(len1-1-len2+1+len3-1);
        }
        if(sum&1) ans+=bit[i];
    }
    return ans;
}

int main()
{
    bit[0]=1;
    for(ll i=1;i<=61;i++)
    bit[i]=bit[i-1]*2;
        scanf("%I64d",&n);
        for(ll i=1;i<=n;i++)
            scanf("%I64d",&x[i]);
        for(ll i=1;i<=n;i++)
            scanf("%I64d",&y[i]);
       printf("%I64d\n",solve()) ;
}



Compiler output:
a.cc:8:12: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
    8 | #define ll __int64
      |            ^~~~~~~
a.cc:11:8: note: in expansion of macro 'll'
   11 | vector<ll>q[2];
      |        ^~
a.cc:11:10: error: template argument 1 is invalid
   11 | vector<ll>q[2];
      |          ^
a.cc:11:10: error: template argument 2 is invalid
a.cc:8:12: error: '__int64' does not name a type; did you mean '__int64_t'?
    8 | #define ll __int64
      |            ^~~~~~~
a.cc:12:1: note: in expansion of macro 'll'
   12 | ll x[maxn],y[maxn];
      | ^~
a.cc:8:12: error: '__int64' does not name a type; did you mean '__int64_t'?
    8 | #define ll __int64
      |            ^~~~~~~
a.cc:13:1: note: in expansion of macro 'll'
   13 | ll bit[100];
      | ^~
a.cc:8:12: error: '__int64' does not name a type; did you mean '__int64_t'?
    8 | #define ll __int64
      |            ^~~~~~~
a.cc:15:1: note: in expansion of macro 'll'
   15 | ll solve()
      | ^~
a.cc: In function 'int main()':
a.cc:55:5: error: 'bit' was not declared in this scope
   55 |     bit[0]=1;
      |     ^~~
a.cc:8:12: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
    8 | #define ll __int64
      |            ^~~~~~~
a.cc:56:9: note: in expansion of macro 'll'
   56 |     for(ll i=1;i<=61;i++)
      |         ^~
a.cc:56:16: error: 'i' was not declared in this scope
   56 |     for(ll i=1;i<=61;i++)
      |                ^
a.cc:8:12: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
    8 | #define ll __int64
      |            ^~~~~~~
a.cc:59:13: note: in expansion of macro 'll'
   59 |         for(ll i=1;i<=n;i++)
      |             ^~
a.cc:59:20: error: 'i' was not declared in this scope
   59 |         for(ll i=1;i<=n;i++)
      |                    ^
a.cc:60:28: error: 'x' was not declared in this scope
   60 |             scanf("%I64d",&x[i]);
      |                            ^
a.cc:8:12: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
    8 | #define ll __int64
      |            ^~~~~~~
a.cc:61:13: note: in expansion of macro 'll'
   61 |         for(ll i=1;i<=n;i++)
      |             ^~
a.cc:61:20: error: 'i' was not declared in this scope
   61 |         for(ll i=1;i<=n;i++)
      |                    ^
a.cc:62:28: error: 'y' was not declared in this scope
   62 |             scanf("%I64d",&y[i]);
      |                            ^
a.cc:63:25: error: 'solve' was not declared in this scope
   63 |        printf("%I64d\n",solve()) ;
      |                         ^~~~~