#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: Fernandez Solange int DNI=44288758; bool div2(int x){return x%2==0;} void two_search(list &L,stack &P,list::iterator it){ if(it==L.end()){ return; } L.sort(); L.reverse(); it=L.begin(); while(it!=L.end()){ if (div2(*it)){ P.push(*it); } it++; } } void two_search(list &L,stack &P){ two_search(L,P,L.begin()); } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(two_search,vrbs); return 0; }