There are two problems.
The tank is far too small. One fancy goldfish needs a 100 litre tank, minimum. Two fancy goldfish need at least 150 litres.
Types and Sizes of Common Goldfish Breeds First of all, never underestimate the size of fully grown goldfish. There are no 'dwarf' breeds of goldfish, whatever 'the man in the shop' might say; even the smaller 'fancy' types have the capacity to grow to a good six inches/15 cms in length...
www.fishforums.net
Secondly, you didn't cycle the tank, you let it run for 24 hours. To cycle a tank you add ammonia to the tank and wait for several weeks until the tank has grown enough bacteria to remove the ammonia.
Fish excrete ammonia. In a new tank, there are no bacteria which 'eat' ammonia so it builds up and poisons the fish. Bacteria will grow slowly over the next few weeks, and they eat the ammonia and turn it into nitrite - which is also poisonous. More bacteria grow which eat nitrite but it takes another few weeks until there are enough of them. Until then, it is the fishkeeper's job to test the water for ammonia and nitrite every day and whenever there is either of these above zero to do a water change to reduce the levels.
With such a small tank, ammonia will have been building up from the moment the fish were put into the tank.
The first thing you need to do is to change at least 75% of the water every day - make sure to add water conditioner to the new water and make sure it is the same temperature as the tank water.
Then you have a difficult choice to make, I'm afraid. The fish need a much bigger tank. If you can't manage a tank at least 150 litres, for the sake of the fish you need to return them to the shop. A 25 litre tank is suitable for only a very few fish, a betta being the only fish recommended for this size - but a betta would need a heater.
One final comment - the shop that said you could have 4 to 6 fish in the tank gave you appalling advice. If you decide to take them back to the shop rather than buy a bigger tank, please do not believe anything else they tell you.