Clausius' statement about heat not being able to flow spontaneously from a cold body to a warm body is sufficient to prove that no engine can have an efficiency greater than that of a perfectly reversible engine. But it's not enough to prove that the Carnot engine is the only reversible engine. For example, there could be a perfectly reversible engine where the gas at initial volume V1$V_1$ and temp T1temperature $T_1$ draws heat from a hot reservoir, expands doing work against constant pressure till the gas reaches a higher temp T2$T_2$, then makes contact with a cold reservoir to contract isochorically to a lower temp T3temperature $T_3$ and lower pressure P2$P_2$, then makes contact with an even colder reservoir to bring down the temptemperature isobarically until the volume contracts to the original volume V1$V_1$, and then makes contact with a hot reservoir to heat up isochorically back to temp T1temperature $T_1$ (the original state). This seems to be as reversible an engine as the Carnot engine. The only difference is that here more than two heat reservoirs are involved. In fact, a Carnot engine is the only possible engine which can operate between just two temperatures; all other engines require one or more heat source or heat sink at some intermediate tempstemperatures. This has a bearing on the issue and make the two not comparable. It can be graphically demonstrated that, between the two outermost temps (iei.e. between the maximum and minimum tempstemperatures), the Carnot engine is the most efficient - see this excellent video.https://www.youtubethis excellent video.com/watch?v=6-6kXurDUUc