Language: Java

#include <bits/stdc++.h>

using namespace std;

#define DBG cerr << '!' << endl;
#define REP(i,n) for(ll (i) = (0);(i) < (n);++i)
#define rep(i,s,g) for(ll (i) = (s);(i) < (g);++i)
#define rrep(i,s,g) for(ll (i) = (s);i >= (g);--(i))
#define PB push_back
#define MP make_pair
#define FI first
#define SE second
#define SHOW1d(v,n) {for(int W = 0;W < (n);W++)cerr << v[W] << ' ';cerr << endl << endl;}
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
#define ALL(v) v.begin(),v.end()
#define Decimal fixed<<setprecision(10)
#define INF 1000000000
#define MOD 1000000007
#define PI 3.14159265359

typedef long long ll;
typedef pair<ll,ll> P;

int main()
{
	int n;cin >> n;
	vector<int> A(n);
	vector<int> B(n);
	
	REP(i,n)cin >> A[i];
	REP(i,n)cin >> B[i];
	
	int ans = 0;
	
	REP(i,30)
	{
		vector<int> v(2*n);
		REP(j,n)
		{
			v[2*j] = B[j] % (1 << (i+1));
			v[2*j+1] = B[j] % (1 << (i+1)) + (1 << (i+1));
		}
		sort(ALL(v));
		int cou = 0;
		REP(j,n)
		{
			int	up = lower_bound(ALL(v),4*(1<<i) - (A[j]%(1<<(i+1)))) - v.begin();
			int lo = lower_bound(ALL(v),3*(1<<i) - (A[j]%(1<<(i+1)))) - v.begin();
			cou += up - lo;
			cou %= 2;
		}		
		ans |= (cou << i);
	}
	
	cout << ans << endl;
	
	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:5: error: illegal character: '#'
#define DBG cerr << '!' << endl;
^
Main.java:5: error: class, interface, enum, or record expected
#define DBG cerr << '!' << endl;
        ^
Main.java:6: error: illegal character: '#'
#define REP(i,n) for(ll (i) = (0);(i) < (n);++i)
^
Main.java:6: error: class, interface, enum, or record expected
#define REP(i,n) for(ll (i) = (0);(i) < (n);++i)
        ^
Main.java:6: error: class, interface, enum, or record expected
#define REP(i,n) for(ll (i) = (0);(i) < (n);++i)
                                  ^
Main.java:6: error: class, interface, enum, or record expected
#define REP(i,n) for(ll (i) = (0);(i) < (n);++i)
                                            ^
Main.java:7: error: illegal character: '#'
#define rep(i,s,g) for(ll (i) = (s);(i) < (g);++i)
^
Main.java:7: error: class, interface, enum, or record expected
#define rep(i,s,g) for(ll (i) = (s);(i) < (g);++i)
                                    ^
Main.java:7: error: class, interface, enum, or record expected
#define rep(i,s,g) for(ll (i) = (s);(i) < (g);++i)
                                              ^
Main.java:8: error: illegal character: '#'
#define rrep(i,s,g) for(ll (i) = (s);i >= (g);--(i))
^
Main.java:8: error: class, interface, enum, or record expected
#define rrep(i,s,g) for(ll (i) = (s);i >= (g);--(i))
                                     ^
Main.java:8: error: class, interface, enum, or record expected
#define rrep(i,s,g) for(ll (i) = (s);i >= (g);--(i))
                                              ^
Main.java:9: error: illegal character: '#'
#define PB push_back
^
Main.java:10: error: illegal character: '#'
#define MP make_pair
^
Main.java:11: error: illegal character: '#'
#define FI first
^
Main.java:12: error: illegal character: '#'
#define SE second
^
Main.java:13: error: illegal character: '#'
#define SHOW1d(v,n) {for(int W = 0;W < (n);W++)cerr << v[W] << ' ';cerr << endl << endl;}
^
Main.java:13: error: class, interface, enum, or record expected
#define SHOW1d(v,n) {for(int W = 0;W < (n);W++)cerr << v[W] << ' ';cerr << endl << endl;}
                                   ^
Main.java:13: error: class, interface, enum, or record expected
#define SHOW1d(v,n) {for(int W = 0;W < (n);W++)cerr << v[W] << ' ';cerr << endl << endl;}
                                           ^
Main.java:13: error: class, interface, enum, or record expected
#define SHOW1d(v,n) {for(int W = 0;W < (n);W++)cerr << v[W] << ' ';cerr << endl << endl;}
                                                                   ^
Main.java:13: error: class, interface, enum, or record expected
#define SHOW1d(v,n) {for(int W = 0;W < (n);W++)cerr << v[W] << ' ';cerr << endl << endl;}
                                                                                        ^
Main.java:14: error: illegal character: '#'
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
^
Main.java:14: error: class, interface, enum, or record expected
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
                                       ^
Main.java:14: error: class, interface, enum, or record expected
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
                                               ^
Main.java:14: error: class, interface, enum, or record expected
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
                                                                      ^
Main.java:14: error: class, interface, enum, or record expected
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
                                                                              ^
Main.java:14: error: class, interface, enum, or record expected
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
                                                                                                               ^
Main.java:14: error: class, interface, enum, or record expected
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
                                                                                                                            ^
Main.java:14: error: class, interface, enum, or record expected
#define SHOW2d(v,i,j) {for(int aaa = 0;aaa < i;aaa++){for(int bbb = 0;bbb < j;bbb++)cerr << v[aaa][bbb] << ' ';cerr << endl;}cerr << endl;}
                                                                                                                                          ^
Main.java:15: error: illegal character: '#'
#define ALL(v) v.begin(),v.end()
^
Main.java:16: error: illegal character: '#'
#define Decimal fixed<<setprecision(10)
^
Main.java:17: error: illegal character: '#'
#define INF 1000000000
^
Main.java:18: error: illegal character: '#'
#define MOD 1000000007
^
Main.java:19: error: illegal character: '#'
#define PI 3.14159265359
^
Main.java:22: error: class, interface, enum, or record expected
typedef pair<ll,ll> P;
^
Main.java:26: error: not a statement
	int n;cin >> n;
	          ^
Main.java:27: error: not a statement
	vector<int> A(n);
	              ^
Main.java:28: error: not a statement
	vector<int> B(n);
	              ^
Main.java:30: error: not a statement
	REP(i,n)cin >> A[i];
	            ^
Main.java:31: error: not a statement
	REP(i,n)cin >> B[i];
	            ^
Main.java:37: error: not a statement
		vector<int> v(2*n);
		                ^
Main.java:55: error: not a statement
	cout << ans << endl;
	            ^
Main.java:24: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
Main.java:27: error: ';' expected
	vector<int> A(n);
	             ^
Main.java:27: error: ';' expected
	vector<int> A(n);
	               ^
Main.java:28: error: ';' expected
	vector<int> B(n);
	             ^
Main.java:28: error: ';' expected
	vector<int> B(n);
	               ^
Main.java:30: error: ';' expected
	REP(i,n)cin >> A[i];
	        ^
Main.java:31: error: ';' expected
	REP(i,n)cin >> B[i];
	        ^
Main.java:35: error: ';' expected
	REP(i,30)
	         ^
Main.java:37: error: ';' expected
		vector<int> v(2*n);
		             ^
Main.java:37: error: ';' expected
		vector<int> v(2*n);
		                 ^
Main.java:38: error: ';' expected
		REP(j,n)
		        ^
Main.java:45: error: ';' expected
		REP(j,n)
		        ^
56 errors