The root error comes from the assumption people will cooperate with the principle willingly. Once you assume most people will exploit any system for personal gain when they can it becomes evident communism is not a workable system without a totalitarian government. Even then people will generally do the bare minimum so you get poverty.
Capitalism exploits the inherent selfishness of individuals for the greater good of society.