#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: Diego Benitez int DNI=42602479; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> list cr7(tree &T,tree :: iterator nodo){ list L; if ( *nodo == 7 ){ L.push_back(*nodo); return L; } auto hijo = nodo.lchild(); while ( hijo != T.end()){ list L2 = cr7(T,hijo); if ( L2.size()) { L2.push_front(*nodo); return L2; } hijo++; } L.clear(); return L; } list cr7(tree &T){ return cr7(T,T.begin()); } int main() { Eval ev; int vrbs = 0; ev.eval<1>(cr7,vrbs); return 0; }