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