error: request for member 'first' in 'it.std::_Rb_tree_const_iterator<_Tp>::operator-> [with _Tp =
std::pair<const long long unsigned int, unsigned char>]()->std::pair<const long long unsigned int,
unsigned char>::second', which is of non-class type 'const unsigned char'
will I need to do some kind of conversion/cast in order to print the contents of this map?
You define the map as having a "key" of "unit64_t", (a unsigned long long), and a value of "unit8_t", (an unsigned char). Yet when you try to print in the for loop you art trying to access the "value" as if it is a std::pair. Which is it?
When I removed ".first" and ".second" the errors went away.
Also it is better to post the whole code as the error may not start in the for loop as you think.
Hope that helps,
Edit: My mistake. I do not use "unit64_t" and "unit8_t" that often and did not realize that they are unsigned.