Yes, there's some confusion to which is which.
They are all squash really.
Traditionally pumpkins are all the round orange varieties.
HOWEVER they actually belong to 2 separate species - both species have many varieties of both summer and winter squash.
Some orange round pumpkins belong to 1 species and some to the other.
And to make it worse they cross pollinate - if you grown them at the allotment, or anywhere less than 100 metres or so, from another variety, the seeds next year might not grow into the same fruit.
Same with cucumbers, gourds and melons.
I really want to try growing "Armenian cucumber" next year, also known as yard long cucumber.
They grow 2-3 feet long, look and taste like cucumbers with light green skin (same colour as cucumber inside), but they are actually a variety of the same species of plant which produces cateloupe melon!