 They're ineligible to move on into the medal round, and either the next team from their bracket is going to go in, the next team from their group will go in, or a team that has the most points and didn't make it out of their group, they will replace one of those teams with one of those two, and that's probably the cleanest way to do it.