Containers having parallel or coaxial compartments, provided with a piston or a movable bottom for discharging contents