If dinosaurs were reptiles then there are living reptiles today that have dorsal sailfins such as the Basilisk Lizard. I dont see how your teacher can exclude a quadruped from being a dinosaur on the basis of a sailfin.