#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: int DNI=42329567; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> void listab(btree &B, btree::iterator it, int pos, list &abpos, list &vals) { if(it == B.end()) return; abpos.push_back(pos); vals.push_back(*it); if(it.left() != B.end()){ listab(B,it.left(),(2*pos+1),abpos,vals); } if(it.right() != B.end()){ listab(B,it.right(),(2*pos+2),abpos,vals); } } void listab(btree &B, list &abpos,list &vals) { listab(B,B.begin(),0,abpos,vals); } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(listab,vrbs); ev.evalr<1>(listab,12345,vrbs); return 0; }