Maybe the answer you are looking for is vegetable.
But, in the scientific meaning of the word, squash is a fruit. This is because the fruit of a plant is the part of the plant that holds the seeds and in this definition of the word squash is a fruit.