1029


#include "stdafx.h"

#include
#include
#include
#include


using namespace std;

int main()
{
    string item_string="";
    string curr_string="";
    cin >> item_string >> curr_string;

    vector error_key;
    for (auto ri : item_string)
    {
        char tmp = toupper(ri);
        
        if ((curr_string.find(ri) == string::npos && curr_string.find(tmp) == string::npos))
        {
            auto find_char = find(error_key.begin(), error_key.end(), tmp);
            if (find_char == error_key.cend())
            {
                error_key.push_back(tmp);;
            }
        }
            
    }

    for (auto r : error_key)
    {
        cout << r;
    }

    return 0;
}

你可能感兴趣的:(1029)