SimpleNode(int n)
{
nodeId = n;
NeighborCount = 0;
arrNeighbors = 0;
SimpleNode *arrNeighbors; <------------
arrNeighbors = new SimpleNode[n];
}
It gives error on arrowed line that; variable 'arrNeighbors' set but not used [-Wunused-but-set-variable]