to elaborate on opti's answer: The surroundings (water and whatever else you had in your total Q equation) had a negative change in energy indicating that it's an exothermic reaction like initially thought. However, something had to of 'taken' (absorbed) that energy from the water. This would have ended up being the substance, making the reaction actually endothermic.
Remember that: Qsurroundings = -Qsystem
In other words, when one things loses energy (Q), then another must have gained the energy. Since you solved for Q and got a negative answer for the surroundings, that means that the systems actually ended up absorbing that energy.
I hope this helped