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