Half a million affected by flooding