// Single Number class Solution { public: int singleNumber(vector &a) { return accumulate(a.begin(), a.end(), 0, bit_xor()); } };