Students were forced to sit in common classrooms owing to leaky roofs