Two groups of fighting teens got into it with cops on a Brooklyn subway platform in an incident that resulted in five arrests, police said.