The discount retailer slashed its guidance for full-year same-store sales and profit.