In this August 13, 2015, photo, homes line the banks of an open-air ditch in the Mandela slum of Rio de Janeiro, Brazil. Mandela is a slum between two sewage-blackened rivers that flow into nearby Guanabara Bay, where some Olympic water sports will be held in 2016. http://eapcontent.ap.org/jpg/2015/20150910/02/6c6785dcb7b89228810f6a70670090d6.jpg?contentid=6c6785dcb7b89228810f6a70670090d6/fmt=jpg/role=Preview/reldt=2015-09-10T02:03:28/media=Photo/recordid=dbb9fdc3491748679a2add9c6d153d38/itemid=99b95493895b4e97a1926dd01c1d02ee/objfilename=preview.jpg/authToken=eNotx0sKAyEQRdEVKa9MW6UDIVuJn4CDtI22pAcuPglkci9nlSvwzYoIbQYEwHnxK9XAicXZnFSU6JQ3xilHeCp%2bCFgAj8xrjpDafvYa59n6uMc56l7GN6Pm0nVqr3W8w59kseoReNME1vQ72Q%2fATyfU&token=1442117401_BC4778A184B3AA3433833BC5228C3AF0 Rivulets of waste crisscross the labyrinth of alleyways that serve as 5-year-old Kaike de Oliveira Benjamin's playground, forming dark, fetid puddles and gurgling streams of refuse and trash.

It's little better inside the tiny, one-room apartment he shares with his mother, two little brothers, and infestations of roaches and rats.

When it rains, the basement apartment floods ankle-deep with a mixture of rainwater and sewage, and drinking water often comes out of the tap looking and smelling contaminated.

Rio de Janeiro's lack of basic sanitation is in the headlines because Olympic athletes will compete in polluted waters during next year's games, but it's hardly news in areas like the Rocinha slum, where contact with untreated waste is an everyday reality for the Benjamins and tens of thousands of other families.

The consequences are not fleeting — they reverberate for decades, dooming many children exposed to this filth to lives stunted by illness.

One public health expert calls the sewage system in Rio largely "medieval," comparable with London or Paris in the 14th or 15th century.

And it's not just Rio. Less than half of households nationwide are hooked up to sewage mains, meaning that much of the waste generated by about 100 million people runs through open-air ditches that bisect neighborhoods like Kaike's across this continent-sized nation, befouling streams and rivers that in turn contaminate lakes and lagoons, beaches and bays.

From Kaike's slum — a sprawling hillside warren of concrete and brittle brick dwellings — waste flows directly from white plastic pipes sticking out of shacks and washes downstream, partially draining into the basin that ends up in the Olympic lagoon.

An independent study commissioned by The Associated Press revealed alarmingly high levels of viruses and, sometimes, bacteria from human sewage in all the city's Olympic waterways. A risk assessment based on the AP data found athletes who ingest three teaspoons of water have a 99% chance of being infected by a virus, raising alarm among some elite sailors, rowers, canoers, marathon swimmers, and triathletes.

For residents of Rocinha and other Rio slums, this is not just a one-time event. They come into contact with such filthy water day after day, week after week, and year after year.

Competitors sail in Guanabara Bay as they take part in Laser class during the Aquece Rio International Regatta in Rio de Janeiro, Saturday, August 15, 2015. Reuters

Public-health experts say children exposed to sewage fall ill more often, are less likely to attend school regularly and fully develop intellectually, and ultimately end up getting significantly lower-paying jobs than people from similar socioeconomic backgrounds who grew up with basic sanitation.

Already, Kaike's 18-month-old brother, Rafael, regularly suffers from stomach problems, and last year Kaike was hospitalized for two weeks with acute vomiting and explosive, bloody diarrhea that doctors attributed to a water-borne bacteria or virus.

The boys' mother, Marcele de Oliveira Franca, can't afford to move and so can't protect her children.

"There's no way to avoid it," said Franca, a 21-year-old single mother who cobbles together odd jobs as a maid to make the $86 monthly rent. "Sometimes I think I should get them out of here, but there's no way."

Several general practitioners who work in the public-health clinics in Rocinha and other Rio slums estimated that up to 40% of all the cases they treat are caused by exposure to sewage. Among their patients, gastroenteritis, hepatitis A, and fungal skin infections are the most common.

Young children are the most affected, the doctors said, probably because most people build up antibodies by adolescence.

Not one of the physicians in these government-run clinics would speak on the record, however, for fear of losing their jobs. The issue of sewage has become a hotly contested political issue as it becomes clear that Rio's state and city leaders will not be able to cleanse the waters in time for the Olympics.

A radical cleanup of the city's blighted waterways was meant to be one of the main legacies of the Olympics, used as a key selling point in the city's official bid document. But with less than a year before the games begin and little improvement, authorities have dialed down expectations. Rio Governor Luiz Fernando Pezao recently pushed back the deadline for cleaning Guanabara Bay, where the Olympic sailing competitions are to be staged, from 2016 to 2035.

Fernando Garcia de Freitas has written several reports tracking the health, financial, and public-policy fallout from Brazil's sewage woes for the pro-sanitation organization Trata Brasil.

"We're talking about nearly 100 million people who are subject, in varying degrees, to this sort of underdevelopment," said Freitas, the expert who called the current sewage system "medieval."

"The effects of our backwardness in sewage treatment goes far beyond the most obvious and easily perceptible one — pollution," Freitas said. Exposure to sewage, he said, "affects people's physiology. It affects their psychological development, harming their intellectual development and then their professional development."

He said his research has found that a child raised without an effective sewage system will go on to earn around 10% less than similarly poor kids who at least have sanitation.

Dr. Luiz Joao Abrahao, who heads Rio's gastroenterologists' association, said that Rio's sewage problem has resulted in endemic levels of water-borne illnesses across his city.

"Acute diarrhea is a common thing — something we experience in our day-to-day lives here," said Abrahao, who works at the Fundao Hospital, a top public hospital located on an island in the most heavily polluted area of Guanabara Bay.

Those most affected, Abrahao added, are the poor.

Brazil is the world's seventh-largest economy, but ranked 84th for access to water and sanitation in last year's Yale Environmental Performance Index of 178 countries, trailing such nations such as Turkmenistan, Moldova, Albania, Syria, and nearby Chile.

Rapid urban growth in recent decades, poor planning, political infighting, and economic instability are largely to blame, experts say.

In Rio, for example, a fiscal crisis that shook Brazil in the 1980s largely froze sewerage investment for two decades, and it took another decade for regulations divvying up responsibility for those investments between the federal, state, and municipal governments to make their way through Brazil's notoriously sluggish bureaucracy.

The skyline of Rio de Janeiro, June 16, 2014. Michael Dalder/Reuters

During that time, the metropolitan area's population mushroomed from around 9 million in 1980 to 12 million today, with many of the new residents settling off the grid of basic public services, in the city's more than 1,000 "favela" slums.

Authorities insist they will ensure the safety of the water at the Olympic venues, possibly by using such palliative measures as bioremediation, a waste-management technique that uses microscopic organisms to break down contaminants. But experts say the measures planned will do virtually nothing to combat the disease-causing viruses that are rife in the waters.

And the Olympic promises offer little comfort to Rio's slum-dwellers.

About 3,000 of Rio's poorest citizens live in Mandela, a sliver of a slum wedged between two sewage-blackened rivers that flow into nearby Guanabara Bay. Residents are crowded into rough-hewn homes built up to the very edge of the rivers, where clods of waste float sluggishly by. The surface bubbles with escaping gases, and a sulphuric stench envelops everything.

Cristiane Candido, a 37-year-old housewife, said her five children were always sick when they were little. Now, it's her grandchildren's turn.

"It's diarrhea, diarrhea, diarrhea all the time," she said.

"Nothing gets better here, nothing," she said. "It just gets worse."

___

To see the AP's summary findings and methodology of its study on Rio's water quality: http://apne.ws/1IFxS9h

___

Follow Jenny Barchfield on Twitter: www.twitter.com/jennybarchfield