Question: In file included from main.cpp: 6 : CourseGradebook.h: In member function virtual std::unordered _ map, double > CourseGradebook::GetStudentScores ( int ) : CourseGradebook.h: 5 9
In file included from main.cpp::
CourseGradebook.h: In member function virtual std::unorderedmap, double CourseGradebook::GetStudentScoresint:
CourseGradebook.h::: error: passing const std::unorderedmap as this argument discards qualifiers fpermissive
studentScoresentryfirst entry.secondstudentID;
In file included from usrincludecunorderedmap:
from main.cpp::
usrincludecbitsunorderedmap.h::: note: in call to std::unorderedmapKey, TpHash, Pred, Alloc::mappedtype& std::unorderedmapKey, TpHash, Pred, Alloc::operatorconst keytype&with Key int; Tp double; Hash std::hash; Pred std::equalto; Alloc std::allocator ; std::unorderedmapKey, TpHash, Pred, Alloc::mappedtype double; std::unorderedmapKey, TpHash, Pred, Alloc::keytype int
operatorconst keytype& k
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
