No sharks lived alongside the dinosaurs. Sharks diverged from bony fish around 420 million years ago, while dinosaurs evolved around 230 million years ago.
The giant shark Megalodon, which lived from around 23 million to 2.6 million years ago, was the largest known shark to ever exist, but it appeared millions of years after the dinosaurs went extinct.