0
I have the following function:
int verticeEstimativaMinima(Node *grafo, int numVertices){}
And in my job main
, I have the following line of code:
Node *grafo = new Node[numVertices];
I mean, basically, I’m trying to pass an object vector to a function. I’m calling her that:
verticeEstimativaMinima(grafo,numVertices);
But the compiler returns to me:
[Error] could not Convert 'graph' from 'Node*' to 'Node'
http://ideone.com/LWENYQ It all worked out. You need to enter a more complete code. The error is not in the parts you posted.
– Maniero
Sorry, the error was listing in the wrong compiler line, it was my own fault!
– Avoid