Answer:
They ate dead animals, plants and lizards etc
Sciencetists know just by looking at the teeth so if the dino had sharp teeth it probably was a meat eater
And lastly sciencetisrts know they looked like reptiles from there soft skin tissues
hope this helped!