#define USECHRONO #undef HAVE_MPI #include "eval.hpp" #include #include #include #include #include using namespace aed; using namespace std; //---:---<*>---:---<*>- COMIENZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> // COMPLETAR DNI y NOMBRE AQUI: // Nombre: Agustin Glorioso int DNI=42923252; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> list prom_sublist(list& L, int S){ list subl; list::iterator itL = L.begin(); list L2 = L; while (!L2.empty()){ list subl; int prom = 0, n = 0, suma = 0; list::iterator itL2 = L2.begin(); while (itL2 != L2.end()){ subl.push_back(*itL2); suma += *itL2; n = subl.size(); prom = suma/n; if (prom == S){ list cero = {0}; if (subl == cero) return {}; return subl; } itL2++; } L2.erase(L2.begin()); } return {}; } int main() { Eval ev; int vrbs = 0; ev.eval<1>(prom_sublist,vrbs); return 0; }