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