when i query and put in list and put key as a account and values as a contact its working, but when i declared its showing error "Invalid initializer type List found for Map>: expected a Map with the same key and value types, or a valid SObject List"
Map<Id,List<contact>> AccConMap = new Map<Id,List<contact>>([SELECt id,
(Select id, firstname From
Contacts) FROM Account LIMIT 10]);
System.debug('Account Key-->'+AccConMap.KeySet()+'Contact Values'+AccConMap.Values());