	#include <iostream>
	#include <string>
	#include <vector>

	int main(int argc, const char* argv_real[])
	{
		const char* argv[] = { "programname", "5", "25" };
	    int currentPlants = std::stoi(argv[2]), targetPeople = std::stoi(argv[1]), currentProduce = 0, week = 0;
	    std::cout << "targetPeople = " << targetPeople
	              << ", currentPlants = " << currentPlants
	              << "\n";

		std::vector<int> plants;
		// Option 1:
		// plants.resize(currentPlants);
		// Option 2:
		for (auto i = 0; i < currentPlants; ++i) {
			plants.push_back(0);
		}

	    while (currentProduce < targetPeople) {
	    	std::cout << "cp: " << currentProduce
	    	          << ", tp: " << targetPeople
	    	          << "\n";
	        currentProduce = 0;
	        
	        // plantCount is a reference to plants[i] for each i
	        for (auto& plantCount : plants) {
	        	std::cout << plantCount << ", ";
	        	currentProduce += plantCount;
	        	plantCount++;
	        }
	        std::cout << " cp: " << currentProduce << "\n";

	        if (currentProduce >= targetPeople)
	        	break;

			// Option 1:
				plants.resize(currentProduce);
			// Option 2:
			//	while (currentPlants < currentProduce) {
			//		plants.push_back(0);
			//	}

	        week++;
	    }
	    std::cout << week;    
	}
