Language: C++

​#include <bits/stdc++.h>
using namespace std;
#include <math.h>
#include <iomanip>
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

const int mod=1000000007;
const int INF=1001001001;

vector<pair<int64_t,int64_t>>prime_factorize(int64_t x){
  vector<pair<int64_t,int64_t>>p;
  for(int64_t i=2;i*i<=x;i++){
    int cnt=0;
    if(x%i==0){
    while(x%i==0){cnt++;x/=i;}
    p.push_back(make_pair(i,cnt));
    }
  }
  if(x!=1){p.push_back(make_pair(x,1));}
  return p; 
}

int main() {
  int N;
  cin>>N;
  vector<int>a(N);
  for(int i=0;i<N;i++){
    cin>>a[i];
  }
  map<int,int>k;
  for(int i=0;i<N;i++){
    k[a[i]]++;
  }

  if(k.size()==1&&k[0]==N){cout<<"Yes"<<endl;}
  else if(N%3==0){
    vector<int>p;
    int q=0;
    for(auto c:k){
      p.push_back(c.first);
      q^=c.first;
    }
    if(k.size()==3&&k[p[0]]==N/3&&k[p[1]]==N/3&&k[p[2]]==N/3&&q==0){
      cout<<"Yes"<<endl;
    }
    else if(k.size()==2&&k[p[0]]==2*N/3&&k[p[1]]==N/3&&q==0){
      cout<<"Yes"<<endl;
    }
    else if(k.size()==2&&k[p[0]]==N/3&&k[p[1]]==2*N/3&&q==0){
      cout<<"Yes"<<endl;
    }
    else{cout<<"No"<<endl;}
    }
  else{cout<<"No"<<endl;}
  return 0;  
}

Compiler output:
a.cc:1:1: error: stray '#' in program
    1 | ​#include <bits/stdc++.h>
      | ^
a.cc:1:1: error: '\U0000200b' does not name a type
    1 | ​#include <bits/stdc++.h>
      |  
a.cc:11:1: error: 'vector' does not name a type
   11 | vector<pair<int64_t,int64_t>>prime_factorize(int64_t x){
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:26:3: error: 'cin' was not declared in this scope; did you mean 'sin'?
   26 |   cin>>N;
      |   ^~~
      |   sin
a.cc:27:3: error: 'vector' was not declared in this scope
   27 |   vector<int>a(N);
      |   ^~~~~~
a.cc:27:10: error: expected primary-expression before 'int'
   27 |   vector<int>a(N);
      |          ^~~
a.cc:29:10: error: 'a' was not declared in this scope
   29 |     cin>>a[i];
      |          ^
a.cc:31:3: error: 'map' was not declared in this scope
   31 |   map<int,int>k;
      |   ^~~
a.cc:31:7: error: expected primary-expression before 'int'
   31 |   map<int,int>k;
      |       ^~~
a.cc:33:5: error: 'k' was not declared in this scope
   33 |     k[a[i]]++;
      |     ^
a.cc:33:7: error: 'a' was not declared in this scope
   33 |     k[a[i]]++;
      |       ^
a.cc:36:6: error: 'k' was not declared in this scope
   36 |   if(k.size()==1&&k[0]==N){cout<<"Yes"<<endl;}
      |      ^
a.cc:36:28: error: 'cout' was not declared in this scope
   36 |   if(k.size()==1&&k[0]==N){cout<<"Yes"<<endl;}
      |                            ^~~~
a.cc:36:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   36 |   if(k.size()==1&&k[0]==N){cout<<"Yes"<<endl;}
      |                                         ^~~~
      |                                         std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/bits/quoted_string.h:38,
                 from /usr/include/c++/14/iomanip:50,
                 from a.cc:4:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:38:12: error: expected primary-expression before 'int'
   38 |     vector<int>p;
      |            ^~~
a.cc:41:7: error: 'p' was not declared in this scope
   41 |       p.push_back(c.first);
      |       ^
a.cc:44:23: error: 'p' was not declared in this scope
   44 |     if(k.size()==3&&k[p[0]]==N/3&&k[p[1]]==N/3&&k[p[2]]==N/3&&q==0){
      |                       ^
a.cc:45:7: error: 'cout' was not declared in this scope
   45 |       cout<<"Yes"<<endl;
      |       ^~~~
a.cc:45:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   45 |       cout<<"Yes"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:48:7: error: 'cout' was not declared in this scope
   48 |       cout<<"Yes"<<endl;
      |       ^~~~
a.cc:48:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   48 |       cout<<"Yes"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:51:7: error: 'cout' was not declared in this scope
   51 |       cout<<"Yes"<<endl;
      |       ^~~~
a.cc:51:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   51 |       cout<<"Yes"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:53:10: error: 'cout' was not declared in this scope
   53 |     else{cout<<"No"<<endl;}
      |          ^~~~
a.cc:53:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   53 |     else{cout<<"No"<<endl;}
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:55:8: error: 'cout' was not declared in this scope
   55 |   else{cout<<"No"<<endl;}
      |        ^~~~
a.cc:55:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   55 |   else{cout<<"No"<<endl;}
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~