Pasta and rice were feeding the Candida, and the antibiotics killed the beneficial allowing the fungus to grow in your intestines.
You weren’t craving junk food, but the Candida growing inside you was.
M&M’s, cheetos, pineapple, and marshmallows were feeding the Candida, and the olives and pickles in distilled vinegar contained yeast, again supporting the Candida’s growth.
At least you haven’t had the infestation for years, only for about five weeks or so it seems. It should be early enough to stop it from growing really bad if you’re willing to go on the treatment and not cheat by eating foods that will feed it.