I have below snippet of apex class where I face below error to compile. Can someone please help?
Error
Incompatible value type Survey_Question_vod__c for Map>
Code Snippet
List<Survey_Question_vod__c> oldques = [select Id, Name,Question_vod__c,Survey_vod__c from Survey_Question_vod__c where Survey_vod__c in : oldsurvey];
List<Survey_Question_vod__c> newques = [select Id, Name,Question_vod__c,Survey_vod__c from Survey_Question_vod__c where Survey_vod__c in : newsurvey];
Map<Id,Survey_Question_vod__c> oldmapques = new map<Id,Survey_Question_vod__c>();
for(Survey_Question_vod__c sq: oldques.values())
{oldmapques.put(sq.Question_vod__c,sq);
}
Map<Id,List<Survey_Question_vod__c>> newmapques = new map<Id,List<Survey_Question_vod__c>>();
for(Survey_Question_vod__c sq: newques)
{newmapques.put(sq.Question_vod__c,sq);
}
Map<Id,Survey_Question_vod__c>
and iterate overoldques.values()
for(Survey_Question_vod__c sq: oldques