#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: Senger Felipe Andrés int DNI=44903025; void buildBT(tree &A, btree &BT, tree::iterator it, btree::iterator it2) { if(it==A.end()) return; it2=BT.insert(it2, *it); auto h=it.lchild(); while(h!=A.end()) { auto leftchild=it2.left(); buildBT(A, BT, h, leftchild); ++h; auto rightchild=it2.right(); buildBT(A, BT, h, rightchild); } } void buildBT(tree &A, btree &BT) { BT.clear(); auto it=A.begin(); auto it2=BT.begin(); buildBT(A, BT, it, it2); } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(buildBT,vrbs); return 0; }