[Noti-aed] EJ3-TPL3
Maxi Brandolin
maxibrandolin en gmail.com
Jue Nov 9 20:28:12 -03 2023
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://venus.santafe-conicet.gov.ar/pipermail/noti-aed/attachments/20231109/ed10815d/attachment-0001.html>
------------ próxima parte ------------
#define USECHRONO
#undef HAVE_MPI
#include "eval.hpp"
#include <cassert>
#include <climits>
#include <cstdlib>
#include <stack>
using namespace aed;
using namespace std;
//---:---<*>---:---<*>- COMIENZA CODIGO FUNCION --:---<*>---:---<*>---:---<*>
// COMPLETAR DNI y NOMBRE AQUI:
// Nombre: Brandolin Maximiliano
int DNI=44903889;
void listab(btree<int> &B, list<int> &abpos, list<int> &val, int pos, btree<int>::iterator it) {
if(it == B.end()) return;
abpos.push_back(pos);
val.push_back(*it);
listab(B, abpos, val, 2 * pos + 1, it.left());
listab(B, abpos, val, 2 * pos + 2, it.right());
}
//---:---<*>---:---<*>---:---<*>---:---<*>---:---<*>
void listab(btree<int> &B, list<int> &abpos,list<int> &vals) {
// COMPLETAR AQUI....
listab(B, abpos, vals, *B.begin(), B.begin());
}
//---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*>
int main() {
Eval ev;
int vrbs=0;
ev.eval<1>(listab,vrbs);
ev.evalr<1>(listab,12345,vrbs);
return 0;
}
Más información sobre la lista de distribución Noti-AED