#include <iostream> #include <vector> #include <algorithm> using namespace std; struct animal { int hungry; int battle; }; void eatCandy(vector<animal*> panda, vector<int>& candies) { sort(candies.begin(), candies.end(), greate...