I just started wondering after seeing the white smoke, did the cardinal just receive a raise when he became the pope? What's his salary if he is paid.
Actually the opposite: his pay went down to 0. The pope receives no salary.
His modest daily needs (food, shelter, clothing, medical care) are provided for by the Vatican1. Popes do not accumulate wealth, and usually die in office. It's difficult to even imagine what he would use money for. He has all he needs. He is able to say the Mass, and he is able to serve God and people. He lives in the midst of a beautiful historic site.
Sometimes, Catholics try to give him money, but he just gives it all away.
1 - though perhaps not always to our standards: "Reportedly, the Papal Apartments had been in disrepair, with 'outmoded furnishings and lack of lighting' and large drums placed in the false ceiling to catch water leaks." (Wikipedia)
Actually it might be little known fact, but yes, they do get paid, but not when they are alive though. Three bags containing gold, silver, and copper coins are placed in the coffin beside the body of a dead pope. Each bag contains one coin for each year in his reign. This is the only monetary compensation a pope receives for his service as pope.
The last pope to get paid like this was, as you guessed, Bl. Pope John Paul II, the Great. The total worth of the coins was €100.26. Here is an actual Image of him getting paid: