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