If you want to make compost you will need more ingredients - layers of weeds, twiggy bits, grass cuttings, shredded cardboard etc., into which you can mix your ingredients. Once that has all rotted down you will have a good compost.

Although it contains some food, compost's main contribution to the garden is to improve the texture of the soil. If topsoil has been improved with compost, plants find it easier to put down roots and take nutrients and water from the soil and so grow better. They will, however, grow without it, as all the wild plants that you see prove.