The Republican candidates clashed on terrorism, immigration and foreign policy in their fifth debate.They all said President [Barack] Obama and Hillary Clinton have not kept America safe.