C++ solution
\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        int count=0;\n        unordered_set<string> storage;\n        for(auto e
```\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        int count=0;\n        unordered_set<string> storage;\n        for(auto email:emails){\n            string temp="";\n            bool before=true;\n            for(int i=0;i<email.length();i++){\n                if(before){\n                    if(email[i]==\'.\') i++;\n                    if(email[i]==\'+\'){while(email[i]!=\'@\'){i++;}}\n                    if(email[i]==\'@\') before=false;\n                }\n                temp+=email[i];\n            }\n            if(storage.find(temp)==storage.end()) count++;\n            storage.insert(temp);\n        }\n        return count;\n    }\n};\n```
[]