Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
int N;
  cin>>N;
  vector<int>A(N);
  for(int i=0;i<N;i++)
    cin>>A.at(i);
  if(N%3!=0){
  bool x=true;
    for(int i=0;i<N;i++)
      if(A[i]!=0){x=false; break;}
    if(x)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  
  }else{
  sort(A.begin(),A.end());
    set<int>S1; set<int>S2; set<int>S3;
  int k=N/3;
    for(int i=0;i<k;i++)
      S1.insert(A[i]);
    for(int i=k;i<2*k;i++)
      S2.insert(A[i]);
    for(int i=2*k;i<N;i++)
      S3.insert(A[i])
      int a=S1.size();
    int b=S2.size();
    int c=S3.size();
    if(a!=1 || b!=1 || c!=1)
      cout<<"No"<<endl;
    else{
    int n=A[0]; int m=A[k]; int l=A[2*k];
      if((n^m)^l==0)
        cout<<"Yes"<<endl;
      else
        cout<<"No"<<endl;
    
    }
  
  
  
  
  }
   return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>N;
      |   ^~~
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>A(N);
      |   ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>A(N);
      |          ^~~
a.cc:8:10: error: 'A' was not declared in this scope
    8 |     cin>>A.at(i);
      |          ^
a.cc:12:10: error: 'A' was not declared in this scope
   12 |       if(A[i]!=0){x=false; break;}
      |          ^
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout<<"Yes"<<endl;
      |       ^~~~
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |       cout<<"Yes"<<endl;
      |                    ^~~~
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout<<"No"<<endl;
      |       ^~~~
a.cc:16:19: error: 'endl' was not declared in this scope
   16 |       cout<<"No"<<endl;
      |                   ^~~~
a.cc:19:8: error: 'A' was not declared in this scope
   19 |   sort(A.begin(),A.end());
      |        ^
a.cc:19:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   19 |   sort(A.begin(),A.end());
      |   ^~~~
      |   short
a.cc:20:5: error: 'set' was not declared in this scope
   20 |     set<int>S1; set<int>S2; set<int>S3;
      |     ^~~
a.cc:20:9: error: expected primary-expression before 'int'
   20 |     set<int>S1; set<int>S2; set<int>S3;
      |         ^~~
a.cc:20:21: error: expected primary-expression before 'int'
   20 |     set<int>S1; set<int>S2; set<int>S3;
      |                     ^~~
a.cc:20:33: error: expected primary-expression before 'int'
   20 |     set<int>S1; set<int>S2; set<int>S3;
      |                                 ^~~
a.cc:23:7: error: 'S1' was not declared in this scope
   23 |       S1.insert(A[i]);
      |       ^~
a.cc:25:7: error: 'S2' was not declared in this scope
   25 |       S2.insert(A[i]);
      |       ^~
a.cc:27:7: error: 'S3' was not declared in this scope
   27 |       S3.insert(A[i])
      |       ^~
a.cc:29:11: error: 'S2' was not declared in this scope
   29 |     int b=S2.size();
      |           ^~
a.cc:30:11: error: 'S3' was not declared in this scope
   30 |     int c=S3.size();
      |           ^~
a.cc:31:8: error: 'a' was not declared in this scope
   31 |     if(a!=1 || b!=1 || c!=1)
      |        ^
a.cc:32:7: error: 'cout' was not declared in this scope
   32 |       cout<<"No"<<endl;
      |       ^~~~
a.cc:32:19: error: 'endl' was not declared in this scope
   32 |       cout<<"No"<<endl;
      |                   ^~~~
a.cc:36:9: error: 'cout' was not declared in this scope
   36 |         cout<<"Yes"<<endl;
      |         ^~~~
a.cc:36:22: error: 'endl' was not declared in this scope
   36 |         cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:38:9: error: 'cout' was not declared in this scope
   38 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:38:21: error: 'endl' was not declared in this scope
   38 |         cout<<"No"<<endl;
      |                     ^~~~