I am new to c++, I have declared set of sets:
std::set< std::set<int> > return_moves;
and also pushed some values in it. I want to access the first element of this set so that I can count a number of elements in that inner set. I am trying to get it by
return_moves.begin().size()
I am getting this error:
set_diff.cpp: In function ‘int main()’:
set_diff.cpp:62:47: error: ‘std::set<std::set<int> >::iterator {aka struct std::_Rb_tree_const_iterator<std::set<int> >}’ has no member named ‘size’
Please help me to rectify my syntax.