update item in a std::setextraction and reinsertion worked fine for me.
Thanks all for the clarification!
update item in a std::setHello,
I am trying to modify an item (an object) stored in a set.
I know its position in set, ...
Trying to make it display for the outputFrom your comments it looks like you are trying to decide the oddity of every digit, so why don't yo...
Trying to make it display for the outputI cannot reproduce the error:
using namespace std;
Deciding Prime numberI think there are a couple of issue with the logic you implemented, I would write something like: