#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: Giordano Matias int DNI=45343290; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> void set3par(vector> &VS, set &S) { // COMPLETAR AQUI... ///contador para ver cuantas numeros pares hay en el conjunto int cont = 0; S.clear(); for(auto elemv : VS) { cont = 0; for(auto elemx : elemv) { ///si el numero es par incremento el contador if (elemx%2 == 0) cont++; ///si hay 3 elementos, agrego el elemv(un conjunto del vector) al conjunto S y hago un break if (cont == 3){ set temp; set_union(S,elemv,temp); S = temp; } } } } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set3par,vrbs); return 0; }