advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:17:26: error: could not convert 'scaffold.std::set<std::pair<int, int> >::find(std::pair<int, int>((- occurrences[(*(C + ((sizetype)(((long unsigned int)i) * 4))))].std::queue<int>::front()), (*(C + ((sizetype)(((long unsigned int)i) * 4))))))' from 'std::set<std::pair<int, int> >::iterator {aka std::_Rb_tree_const_iterator<std::pair<int, int> >}' to 'bool'
if (scaffold.find({-occurrences[C[i]].front(), C[i]})) {
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
advisor.cpp:21:50: error: 'std::set<std::pair<int, int> >::iterator {aka struct std::_Rb_tree_const_iterator<std::pair<int, int> >}' has no member named 'second'
swap_sequence[i] = *scaffold.begin().second;
^~~~~~
assistant.cpp: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:21:39: error: 'std::set<std::pair<int, int> >::iterator {aka struct std::_Rb_tree_const_iterator<std::pair<int, int> >}' has no member named 'second'
putback(*scaffold.begin().second);
^~~~~~
assistant.cpp:21:13: error: 'putback' was not declared in this scope
putback(*scaffold.begin().second);
^~~~~~~
assistant.cpp:21:13: note: suggested alternative: 'PutBack'
putback(*scaffold.begin().second);
^~~~~~~
PutBack
assistant.cpp:22:43: error: 'std::set<std::pair<int, int> >::iterator {aka struct std::_Rb_tree_const_iterator<std::pair<int, int> >}' has no member named 'second'
on_scaffold[*scaffold.begin().second] = 0;
^~~~~~