C++ || Easiest and simplest
```\nclass Solution {\npublic:\n    int numUniqueEmails(vector& emails) {\n        set ans;\n        for(string email : emails)\n        {\n            string t
```\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        set<string> ans;\n        for(string email : emails)\n        {\n            string temp = "";\n            int i;\n            for(i=0; email[i] != \'@\'; i++)\n            {\n                if(email[i] == \'.\')\n                    continue;\n                else if(email[i] == \'+\')\n                    break;\n                else\n                    temp += email[i];\n            }\n            i = email.find(\'@\');\n            temp += email.substr(i, email.length()-i);\n            ans.insert(temp);\n        }\n        return ans.size();\n    }\n};
['C', 'C++']