#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: Bob Esponja int DNI=41733331; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> list cr7(tree &T, tree::iterator it){ if(*it==7) return {*it}; // si el iterador contiene el 7, devuelve solamente ese elemento auto c = it.lchild(); while(c!=T.end()){ list Lcamino = cr7(T,c); if(Lcamino.size()){ Lcamino.push_front(*it); //voy insertando en la lista return Lcamino; } c++; } return {}; // si no se encuentra el 7 se devuelve la lista vacia } //wrapper list cr7(tree &T){ return cr7(T,T.begin()); } int main() { Eval ev; int vrbs = 0; ev.eval<1>(cr7,vrbs); return 0; }