Thousands crammed into boats and army trucks as they fled their homes in Serbia and Bosnia on Sunday after record rainfall turned the Sava River into a deadly torrent and caused the worst floods in more than a century.