Dear Student
The heat energy depends on the product of mass, specific heat and mass of water. Son in case of hot cup and swimming pool the mass of water in pool is very large as compared to the cup. So the swimming pool will have more heat energy even at less temprature.
REGARDS