#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: Bonacci, Lucas Javier int DNI=40115810; void insertab(btree &B, list &pos,list &val, btree::iterator itB){ if(pos.empty()) return; int posicion = pos.front(); pos.pop_front(); int valor = val.front(); val.pop_front(); itB = B.insert(itB,valor); if(!pos.empty()){ if(((2*posicion)+1) == pos.front()) insertab(B,pos,val,itB.left()); if(((2*posicion)+2) == pos.front()) insertab(B,pos,val,itB.right()); } } //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> void insertab(btree &B, list &pos,list &val) { insertab(B,pos,val,B.begin()); } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(insertab,vrbs); return 0; }