#include "mapproc.h" #include void main() { map mapAll; map::iterator itr = mapAll.begin(); map mapStaff; map mapStudents; ReadInputFile(mapAll, "NameList.txt"); OutputNumerically(mapAll, "IdList.txt"); SplitIntoStaffAndStudents(mapStaff,mapStudents,mapAll); OutputAlphabetically(mapAll, "AlphabeticList.txt"); // do the rest of the stuff } //////////////////////////////////////////////////////////////////////////// d:\documents and settings\administrator\my documents\uni\c++\assignment2\q3\map\mapmain.cpp(14) : error C2664: 'SplitIntoStaffAndStudents' : cannot convert parameter 1 from 'class std::map,c lass std::allocator >,int,struct std::less,class std::allocator > >,class std::allocator >' to 'class std::map ,class std::allocator >,struct std::less,class std::allocator,class std::allocator > > > &' A reference that is not to 'const' cannot be bound to a non-lvalue