Exposure compensation is the feature with which you can make the exposure lighter or darker.
Go to Exposure Compensation.
Your camera probably also has flash exposure compensation.
Flash exposure compensation allows you to adjust the brightness of the shadows when using fill flash.
Flash was not used for the top pumpkin photograph, making the shadow too dark.
Fill flash brightened the shadow in the middle photograph.
For the third photograph, flash exposure compensation was set to -1.0.
Here are close-ups of the pumpkin at flash exposure compensations of 0.0, -0.5, and -1.0.