Rio de Janeiro is not a poor country. It is a city in Brazil, which has a relatively large income inequality, but it's not a poor country.
Brazil is the 12th largest economy in the world, with a GDP of over $1.4 trillion. While there are certainly pockets of poverty in Brazil, the country as a whole is not considered poor.