There's nothing about capitalism that demands that monopolies of any kind should or must be allowed. This is a subject of much debate of course, since there is no single authority about what Capitalism is. It's not really an ideology in that sense. However if we take Adam Smith as playing the role for Capitalism that Marx plays for Communism, Smith was very much aware the markets must be very carefully regulated in order to protect the common good. Unfortunately Marx was, shall we say, considerably more utopian about how Communism would inevitably emerge and self-regulate itself.
It depends on what you mean by capitalism. If by capitalism, you mean a market-based economy, like that adam smith guy, then yeah, we should have anti-trust laws to guard against private anti-competitive behavior. If you mean lack of government interference at all costs (which is more a political program than an economic program, really), then no, monopolies and/or cartels will actually be the end state of many industries if you don't have laws preventing that behavior.
Is every flaw of capitalism implied flaws of socialism and communism and vise verse? Every flaw of communism also a flaw in capitalism?
That is true only if one say that capitalism and communism and socialism is all the exact same ism.
Greed attempts to attain maximal reward, but this does not mean the reward is achieved. Greed is neither necessary or sufficient to achieve extraordinary outcomes.
That implies that socialism and communism do not reward greed and cheating, which is hard to believe.