@tanguatlay,
We would say either "A five story building" or "A five storied pagoda"
In America, we would say 'apartment' rather than 'flat'. In England they seem to say 'flat'. I don't know about the rest of the world.
Also, we would say 'A five room apartment (or flat). I've never heard 'A five room
ed apartment, though it wouldn't really be incorrect.