You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
makePrimesTreeElem needs to have IntVector::iterator &i as last parameter and makePrimesTree needs to pass in a reference to copy of vec.begin() that can be modified.
`IntVector::iterator it = vec.begin();
currently the iterator parameter is constant, and it fills the tree with duplicates of some data.
I'll attach a copy of fig_2_19 that has this fixed. The same fix needs to go into fig_2_18.
makePrimesTreeElem needs to have IntVector::iterator &i as last parameter and makePrimesTree needs to pass in a reference to copy of vec.begin() that can be modified.
`IntVector::iterator it = vec.begin();
currently the iterator parameter is constant, and it fills the tree with duplicates of some data.
I'll attach a copy of fig_2_19 that has this fixed. The same fix needs to go into fig_2_18.
fig_2_19b.txt
`
The text was updated successfully, but these errors were encountered: