What is "does not name a type" error and how it can be resolved

#include <bits/stdc++.h>

using namespace std;

class Item{

    unordered_map<string,int>  mp;
    mp["Pizza"]=50;
    mp["Burger"]=100;
    mp["Coke"]=50;
    mp["Brownies"]=60;
public:
    int getPrice(string s)
    {
        return mp[s];
    }


};
class Day{

    std::unordered_map<string,int>  hr;
    hr["Peak hour"]=30;
    hr["Night Charges"]=20;
    hr["Special days"]=50;
    hr["Normal"]=20;
public:
    int getHrPrice(string s)
    {
        return hr[s];
    }
};


int main()

{

    double totalBill=0;
    Item i;
    Day d;
    totalBill+=i.getPrice("Burger");
    totalBill+=i.getPrice("Coke");
    totalBill+=totalBill*5/100;
    totalBill+=d.getHrPrice("Special");
    totalBill+=d.getHrPrice("Night");
    cout<<totalBill<<endl;

    return 0;

}

I'm getting this error :

error: ‘mp’ does not name a type

error: ‘hr’ does not name a type

I'm new to OOPS. Thanks in Advance...

enter image description here

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum