What does this error mean?
I know I am performing my erase method wrong. It has to take in an iterator, correct? How do I create an iterator that is pointer to the location i in the list?Code:
25 permutation.cpp invalid conversion from `int' to `std::_List_node_base*'
Maybe something like this?
for(int i = 0; i < orig.size(); i++) // line 21
list<int> orig2 = orig;
iPtr = orig2.begin();
list<int> perm2 = perm;