Are goods that are wasted counted into the GDP of a nation? If x apples are produced in an economy, and only x - y are consumed (y apples get rotten at different stores in the country), is the value of these wasted apples considered as a part of GDP?
It may depend on when they are wasted: 


yes if a consumer purchases them, as it does not matter whether they are eaten or thrown away rotten from the consumer's cupboard (except on the consumer's waistline and perhaps therefore on other purchases); 
no if a producer fails to sell them and writes them off as they rot in the producer's stores, as they have a value of zero
probably not if a retailer buys them from the producer but writes them off as they rot in the shop, as they count towards GDP from the producer's accounts but negatively towards from the retailer's accounts (either as negative profit in the GDP income calculation, or as consumption of intermediate goods in the GDP production calculation, or simply not counted in the GDP expenditure calculation)