Language: C++

#define _GLIBCXX_DEBUG//TLEの原因になるので注意！！！！！！！！！！！
#include<cmath>
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
vector<int> arr;
stack<int> st;
queue<int> qu;
queue<pair<int,int> > qu2;
priority_queue<int> pq;
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define rep2(i,n) for(int i=1; i<=(int)(n); i++)
#define mins(x,y) x=min(x,y)
#define maxs(x,y) x=max(x,y)
typedef set<int> set_t;
typedef set<string> set_g;
typedef complex<double> xy_t;
static const int NIL = -1;
static const int INF = 1000000007;
#define mp make_pair
#define sz(x) int(x.xise())

/*int P[10010];
void init(int n){//Union-find
    for(int i=0;i<n;++i)P[i]=i;
}
int root(int a) {
    if(P[a]==a)return a;
    return (P[a]=root(P[a]));
}
bool is_same_set(int a,int b){
    return root(a) == root(b);//代表元を求める
}
void unite(int a,int b){
    P[root(a)]=root(b);
}//対set,グラフ？
//セグメント木？？
*/

double dot_product(xy_t a, xy_t b) { return (conj(a)*b).real(); }//内積
double cross_product(xy_t a, xy_t b) { return (conj(a)*b).imag(); }//外積
xy_t projection(xy_t p, xy_t b) { return b*dot_product(p,b)/norm(b); }//投影
//対図形

#define mod 1000000007
/*ll f[2001];
//int n,k とかしておく

ll pw(ll x, ll y){//euclidの互除法より
    ll a= 1;
    while(y){
        if(y&1){//奇数なら
            a = a*x%mod;
        }
        x = x*x%mod;
        y /= 2;
    }
    return a;
}

ll modinv(ll x){//逆元を求める
    return pw(x, mod - 2 );
}

ll comb(int n,int r){
    if(n<r){
        return 0;
    }
    return f[n] * modinv(f[r])%mod*modinv(f[n-r])%mod;
}//対combination//ただしfは用意してね
*/

//cerrはコメントアウトしなくても通る
int maxn=100000;
vector<int> a[maxn];
ll row=0;

void line_s(int bit){
    ll id=-1;
    for(int i=row;i<n;i++){
        if(a[i]>>bit&1)id=i;
    }
    if(id=-1)return;
    swap(a[row],a[id]);
    rep(i,n){
        if((i!=row)&&((a[i]>>bit)&1)){
            a[i]^=a[row];
        }
    }
    ++row;
    return;
}

int main(){
    int n;
    cin >> n;
    
    int s=0;
    rep(i,n){
        cin >> a[i];
        s^=a[i];
    }
    for(int i=59;i>=0;i--){
        if((s>>i&1)==0&&row<n)line_s(i);
    }
    ll ans=0;
    rep(i,row) ans^=a[i];
    cout<<(ans|s)*2-s<<endl;
    return 0;
}

Compiler output:
a.cc:75:15: error: size of array 'a' is not an integral constant-expression
   75 | vector<int> a[maxn];
      |               ^~~~
a.cc: In function 'void line_s(int)':
a.cc:80:21: error: 'n' was not declared in this scope
   80 |     for(int i=row;i<n;i++){
      |                     ^
a.cc:81:16: error: no match for 'operator>>' (operand types are 'std::__debug::vector<int>' and 'int')
   81 |         if(a[i]>>bit&1)id=i;
      |            ~~~~^~~~~
      |               |  |
      |               |  int
      |               std::__debug::vector<int>
In file included from /usr/include/c++/14/bitset:1743,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:3:
/usr/include/c++/14/debug/bitset:436:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::__debug::operator>>(std::basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
  436 |     operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
      |     ^~~~~~~~
/usr/include/c++/14/debug/bitset:436:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
  131 |     operator>>(byte __b, _IntegerType __shift) noexcept
      |     ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note:   template argument deduction/substitution failed:
a.cc:81:15: note:   cannot convert 'a[i]' (type 'std::__debug::vector<int>') to type 'std::byte'
   81 |         if(a[i]>>bit&1)id=i;
      |            ~~~^
In file included from /usr/include/c++/14/string:55,
                 from /usr/include/c++/14/bitset:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
  835 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
In file included from /usr/include/c++/14/istream:1109,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
  978 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
  849 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/usr/include/c++/14/istream:849:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<char, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
  854 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/usr/include/c++/14/istream:854:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<char, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
  896 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
      |     ^~~~~~~~
/usr/include/c++/14/istream:896:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
  939 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/usr/include/c++/14/istream:939:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<char, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
  945 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
/usr/include/c++/14/istream:945:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<char, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
 1099 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::__debug::vector<int>&; _Tp = int&]':
a.cc:81:18:   required from here
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
 1099 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
  509 |     operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
      |     ^~~~~~~~
/usr/include/c++/14/complex:509:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
   76 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
      |     ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
  106 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
      |     ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
  137 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
      |     ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
  177 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
      |     ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug::vector<int>' is not derived from 'std::basic_istream<_CharT, _Traits>'
   81 |         if(a[i]>>bit&1)id=i;
      |                  ^~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
  207 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
      |     ^~~~~~~~
/usr/include/c++/14/iomanip:207:5: note:   template argument deduction/substitution failed:
a.cc:81:18: note:   'std::__debug: