candies.cpp