Skip to content

Instantly share code, notes, and snippets.

@astamatto
Created October 18, 2016 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astamatto/c74acb7466fe6ed0b6d171859e8a072e to your computer and use it in GitHub Desktop.
Save astamatto/c74acb7466fe6ed0b6d171859e8a072e to your computer and use it in GitHub Desktop.
//linha 22
int contar(map<int, arvore*>::iterator it); //faltou mudar a assinatura lá em cima
//linha 72
cont = contar(mapa.find((*aux)->chave)); //Em C++ iterators são ponteiros, você precisa seguir o iterator/ponteiro,
// aí cai em um ponteiro para árvore, e segue de novo com a setinha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment