RIO DE JANEIRO, Brazil—Her face and bare arms painted with the words "medicina" and "UFRJ"—her major and the acronym, in Portuguese, of the Federal University of Rio de Janeiro—Ana Carolina and some classmates stand on a busy street in Rio’s sunny Ipanema district as they ask for spare change. The money isn’t for tuition; UFRJ doesn’t charge any.