I think you are reaching here. For me, there are five students with one room each.
1-Five students' rooms were damaged in the fire.
Can we tell if 'the rooms of five students' were damaged or 'five rooms belonging to students' were damaged.
It is possible that each student had more than one room. It is also possible that the rooms were owned collectively by all students.