Language: C++

#include<stdio.h>
#include<cstdio>
#include<stdlib.h>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<string>
#include<cmath>
#include<vector>

#include<stack>
#include<queue>
#include<time.h>
#include<set>
#include<map>
#include <iomanip>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define REP(i,a,b) for(int i=a;i>b;i--)
#define vint vector<int> 
#define vvint vector<vint>
#define ct(a) cout<<a<<endl
using namespace std;
typedef long long ll;
const ll MOD = 1e9 + 7;
const ll mod = 1e9 + 7;



string S;

ll N,k,ans=1;
ll a[200005];
ll beki[500];
bool flag=true;

vector<int, int> v[100001];
ll p[100001];
map<int, int> mp;



int main() {
	FOR(i, 0, 100000)p[i] = -1;
	
	cin >> N;
	FOR(i, 0, N) {
		cin >> a[i];
		if (mp[a[i]] == 0)mp[a[i]]++;
	}
		sort(a, a + N);
	reverse(a, a + N);


	if (a[0] == 0)flag = true;
	else {
		if (N % 3 != 0)flag = false;
		else {
			
			ll cnt = 0;
			while (a[0] > 0) {
				if (a[0] % 2 == 0) {
					beki[cnt]++;
					p[cnt] = 0;
				}
					cnt++;
				a[0] /= 2;
			}

			FOR(j, 1, N) {
				ll cur = a[j];
				FOR(i, 0, cnt) {
					if (cur % 2 == 0)
					{
						beki[i]++;
						if (p[i] == -1)p[i] = i;
						else {
							
						}
					}
					cur /= 2;
				}
			}

			FOR(i,0,cnt)if(beki[i] != N / 3)flag = false;
		}
	}
	if (mp.size() % 3 != 0)flag = false;
	if (flag)cout << "Yes" << endl;
	else cout << "No" << endl;

	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:9:
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<int, int>':
/usr/include/c++/14/bits/stl_vector.h:428:11:   required from 'class std::vector<int, int>'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
a.cc:36:26:   required from here
   36 | vector<int, int> v[100001];
      |                          ^
/usr/include/c++/14/bits/stl_vector.h:87:28: error: 'int' is not a class, struct, or union type
   87 |         rebind<_Tp>::other _Tp_alloc_type;
      |                            ^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:89:9: error: 'int' is not a class, struct, or union type
   89 |         pointer;
      |         ^~~~~~~
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'class std::vector<int, int>':
a.cc:36:26:   required from here
   36 | vector<int, int> v[100001];
      |                          ^
/usr/include/c++/14/bits/stl_vector.h:518:20: error: '_M_allocate' has not been declared in 'std::vector<int, int>::_Base'
  518 |       using _Base::_M_allocate;
      |                    ^~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:519:20: error: '_M_deallocate' has not been declared in 'std::vector<int, int>::_Base'
  519 |       using _Base::_M_deallocate;
      |                    ^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:521:20: error: '_M_get_Tp_allocator' has not been declared in 'std::vector<int, int>::_Base'
  521 |       using _Base::_M_get_Tp_allocator;
      |                    ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdio:41,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = int; _Alloc = int]':
a.cc:36:26:   required from here
   36 | vector<int, int> v[100001];
      |                          ^
/usr/include/c++/14/bits/stl_vector.h:136:24: error: 'int' is not a class, struct, or union type
  136 |         _Vector_impl() _GLIBCXX_NOEXCEPT_IF(
      |                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = int; _Alloc = int]':
/usr/include/c++/14/bits/stl_vector.h:314:7:   required from here
  314 |       _Vector_base() = default;
      |       ^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:141:26: error: 'int' is not a class, struct, or union type
  141 |         : _Tp_alloc_type()
      |                          ^