#define USECHRONO #undef HAVE_MPI #include "eval.hpp" #include #include #include #include using namespace aed; using namespace std; //---:---<*>---:---<*>- COMIENZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> // COMPLETAR DNI y NOMBRE AQUI: // Nombre: Gonzalo Cardin int DNI=43827109; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> bool es_Par(int x){ return (x%2 == 0); } void set3par(vector> &VS, set &S,vector>::iterator itVS){ S.clear(); while(itVS != VS.end()){ int cant_Numeros_Pares = 0; set&C = *itVS; auto itC = C.begin(); while(itC != C.end()){ int E = *itC; if(es_Par(E)) cant_Numeros_Pares++; ++itC; } if(cant_Numeros_Pares >= 3) S.insert(C.begin(),C.end()); ++itVS; } } void set3par(vector> &VS, set &S) { set3par(VS,S,VS.begin()); } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set3par,vrbs); return 0; }