Easy C++
Code
# Code
```cpp []
class Solution {
public:
    int getLargestOutlier(vector<int>& nums) {
        int res=-1001;
        int total=accumulate(nums.begin(), nums.end(), 0);
        unordered_map<int, int> freq;
        for(int &i: nums)
            freq[i]++;
        
        for(auto [outlier, v]: freq)
        {
            int sum=total-outlier;
            freq[outlier]--;
            //cout<<outlier<<"-----";
            for(auto [k, _v]: freq)
            {
                if(_v)
                {
                    int sum2=sum-k;
                    //cout<<"["<<sum2<<"]"<<", "<<endl;
                    if(freq[k]>0 && sum2==k)
                    {
                        res=max(res, outlier);
                        //cout<<k<<", "<<sum2<<endl;
                    }
                }
            }
            //cout<<endl;

            freq[outlier]++;
        }

        return res;
    }
};
```
['Array', 'Hash Table', 'Counting', 'Enumeration', 'C++']