#include <iostream>
#include <vector>
#include <numeric>
#include <string>
#include <functional>
using namespace std;
int singleNumber(vector<int>& nums)
{
return accumulate(nums.begin(),nums.end(),0,std::bit_xor<int>());
}
int main(){
vector<int> a {1,3,4,1,3};
/*
a.emplace_back(1);
a.emplace_back(3);
a.emplace_back(4);
a.emplace_back(1);
a.emplace_back(3);
*/
int single = singleNumber(a);
return 0;
}