#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: Fernandez Solange int DNI=44288758; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> bool tres_pares(set&S){ auto it=S.begin(); int cont=0; while(it!=S.end()){ if ((*it)%2==0){ cont++; } if(cont==3){ return false; } it++; } return false; }; void set3par(vector> &VS, set &S) { // S.clear(); setaux; auto it=VS.begin(); while (it!=VS.end()){ if (tres_pares(*it)){ aux.clear(); set_union(*it,S,aux); //S=aux; } it++; } } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set3par,vrbs); return 0; }