Masyvo Užklausos 1

Taškai: 0

Compile: FAIL

masyvo_uzklausos123.cpp: In function ‘std::set<int> merge(std::set<int>, std::set<int>)’: masyvo_uzklausos123.cpp:36:18: error: could not convert ‘a.std::set<_Key, _Compare, _Alloc>::begin<int, std::less<int>, std::allocator<int> >()’ from ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ to ‘std::set<int>’ merge(a.begin(), a.end(), ^ masyvo_uzklausos123.cpp: In function ‘void build(int)’: masyvo_uzklausos123.cpp:66:42: error: could not convert ‘medis[index].virsune::skaiciai.std::set<_Key, _Compare, _Alloc>::begin<int, std::less<int>, std::allocator<int> >()’ from ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ to ‘std::set<int>’ merge(medis[index].skaiciai.begin(), medis[index].skaiciai.end(), ^

nr.resulttimemessage