Favelas are symptomatic of the huge wealth disparity that exists in Brazil.  And US homelessness is symptomatic of the very same thing that also exists here.  If we want to cure the symptoms, we have to treat the underlying disease.  

In a country blessed with such immense wealth and resources, nobody should sleep under the stars except by their own preference.