Language: C++

#include "bits/stdc++.h"
using namespace std;
#define IOS { ios :: sync_with_stdio(false); cin.tie(0); cout.tie(0); }
#define pb push_back
#define nl cout<<"\n"
#define endl "\n"
#define ll long long
#define ld long double
#define all(c) (c).begin(),(c).end()
#define trav(a,x) for(auto a = x.begin() ; a != x.end() ; a++)
#define rep(i,n) for(int i = 0 ; i < n ; i++)
#define lb lower_bound
#define ub upper_bound
#define pll pair<ll,ll>
#define vll vector<ll>
#define vpll vector<pair<ll,ll>>
#define f first
#define s second

inline ll max(ll a,ll b) {return ((a>b)?a:b);}
inline ll min(ll a,ll b) {return ((a>b)?b:a);}
inline ll gcd(ll a ,ll b) {if(b==0) return a; a%=b;return gcd(b,a);}
ll power(ll x, ll y){if(y == 0) return 1; ll a = power(x,y/2);if (y % 2 == 0) return a * a; else return x * a * a; }
ll powermod(ll x, ll ex , ll md) {ll ans = 1ll;while (ex > 0) {if (ex & 1ll) ans = (ans * x) % md; ex >>= 1ll;x = (x * x) % md;}return ans;}

const ll inf = 1e18 + 9;
const ll mod = 1e9 + 7;
const ld PI = acos(-1);
const ld eps = 1e-9;

const ll N = 1e6 + 1;

void solve(){
    ll n;
    cin >> n;
    ll a[n];
    rep(i , n) cin >> a[i];
    ll s = a[0];
    for(ll i = 1 ; i < n ; i++) s = s^a[i];
    rep(i , n) {
        ll x = (s^(a[i]));
        cout << x << " ";
    }
}
int main(){
    IOS;
    cout << fixed << setprecision(20);#include "bits/stdc++.h"
using namespace std;
#define IOS { ios :: sync_with_stdio(false); cin.tie(0); cout.tie(0); }
#define pb push_back
#define nl cout<<"\n"
#define endl "\n"
#define ll long long
#define ld long double
#define all(c) (c).begin(),(c).end()
#define trav(a,x) for(auto a = x.begin() ; a != x.end() ; a++)
#define rep(i,n) for(int i = 0 ; i < n ; i++)
#define lb lower_bound
#define ub upper_bound
#define pll pair<ll,ll>
#define vll vector<ll>
#define vpll vector<pair<ll,ll>>
#define f first
#define s second

inline ll max(ll a,ll b) {return ((a>b)?a:b);}
inline ll min(ll a,ll b) {return ((a>b)?b:a);}
inline ll gcd(ll a ,ll b) {if(b==0) return a; a%=b;return gcd(b,a);}
ll power(ll x, ll y){if(y == 0) return 1; ll a = power(x,y/2);if (y % 2 == 0) return a * a; else return x * a * a; }
ll powermod(ll x, ll ex , ll md) {ll ans = 1ll;while (ex > 0) {if (ex & 1ll) ans = (ans * x) % md; ex >>= 1ll;x = (x * x) % md;}return ans;}

const ll inf = 1e18 + 9;
const ll mod = 1e9 + 7;
const ld PI = acos(-1);
const ld eps = 1e-9;

const ll N = 1e6 + 1;

void solve(){
    ll n;
    cin >> n;
    ll a[n];
    rep(i , n) cin >> a[i];
    ll s = a[0];
    for(ll i = 1 ; i < n ; i++) s = s^a[i];
    rep(i , n) {
        ll x = (s^(a[i]));
        cout << x << " ";
    }
}
int main(){
    IOS;
    cout << fixed << setprecision(20);
    ll NTC=1;
    // cin>>NTC;
    ll PTC=0;
    while(PTC++<NTC){
        // cout<<"Case #"<<PTC<<":"<<' ';
        solve();
    }
    cerr << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC << "ms\n";
}

    ll NTC=1;
    // cin>>NTC;
    ll PTC=0;
    while(PTC++<NTC){
        // cout<<"Case #"<<PTC<<":"<<' ';
        solve();
    }
    cerr << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC << "ms\n";
}


Compiler output:
a.cc:47:39: error: stray '#' in program
   47 |     cout << fixed << setprecision(20);#include "bits/stdc++.h"
      |                                       ^
a.cc: In function 'int main()':
a.cc:47:40: error: 'include' was not declared in this scope
   47 |     cout << fixed << setprecision(20);#include "bits/stdc++.h"
      |                                        ^~~~~~~
a.cc:66:26: error: a function-definition is not allowed here before '{' token
   66 | inline ll max(ll a,ll b) {return ((a>b)?a:b);}
      |                          ^
a.cc:67:26: error: a function-definition is not allowed here before '{' token
   67 | inline ll min(ll a,ll b) {return ((a>b)?b:a);}
      |                          ^
a.cc:68:27: error: a function-definition is not allowed here before '{' token
   68 | inline ll gcd(ll a ,ll b) {if(b==0) return a; a%=b;return gcd(b,a);}
      |                           ^
a.cc:69:21: error: a function-definition is not allowed here before '{' token
   69 | ll power(ll x, ll y){if(y == 0) return 1; ll a = power(x,y/2);if (y % 2 == 0) return a * a; else return x * a * a; }
      |                     ^
a.cc:70:34: error: a function-definition is not allowed here before '{' token
   70 | ll powermod(ll x, ll ex , ll md) {ll ans = 1ll;while (ex > 0) {if (ex & 1ll) ans = (ans * x) % md; ex >>= 1ll;x = (x * x) % md;}return ans;}
      |                                  ^
a.cc:79:13: error: a function-definition is not allowed here before '{' token
   79 | void solve(){
      |             ^
a.cc:91:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   91 | int main(){
      |         ^~
a.cc:91:9: note: remove parentheses to default-initialize a variable
   91 | int main(){
      |         ^~
      |         --
a.cc:91:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:91:11: error: a function-definition is not allowed here before '{' token
   91 | int main(){
      |           ^