Q:

C++, Both "if" statements are executed without meeting the requirements

For some reason both of the if statements are executed, even tho they dont meet the requierements. If you know how to fix this issue, please comment it. I started coding yesterday, so dont hate me for stupid mistakes.
int search;
int notes;
int code;

int main()
{

        cout << "Welcome User\n\n";
        cout << "What do you want to use?\n";
        cout << "Private notes 'notes'\n";
        cout << "Code 'code'\n";
        cin >> search;
        if (search == code)
        {
            cout << "Code\n";
            cout << "So you wanted to see my code, huh?\n
        }
        if (search == notes)
        {
            cout << "Notes\n";
            cout << "This is a test Software made by Anes, on the 6th 
            dezember of 2018\n";
            cout << "This is my 1st real programm I'm trying to build.\n";
        }

    return 0;
}

A:

Variable names are not values.
Your variables are ints, and you're inputting words.
Reading a non-integer into an integer fails, so the variables are still zero afterwards – they are all zero.
If you want to check for particular strings, use strings.
int main()
{
    string entry;
    cout << "Whats the password?\n";
    cin >> entry;
    {
        string search;
        cout << "Welcome User\n\n";
        cout << "What do you want to use?\n";
        cout << "Private notes 'notes'\n";
        cout << "Code 'code'\n";
        cin >> search;
        if (search == "code")
        {
            cout << "Code\n";
            cout << "So you wanted to see my code, huh?\n
        }
        if (search == "notes")
        {
            cout << "Notes\n";
            cout << "This is a test Software made by Anes, on the 6th 
            dezember of 2018\n";
            cout << "This is my 1st real programm I'm trying to build.\n";
        }

    }
    return 0;
}

