The complier shows ERROR on "map<vtype, int >::iterator mbeg = record.begin();". It says "error: expected ‘;’ before ‘mbeg’" and "error: dependent-name ‘std::map::iterator’ is parsed as a non-type, but instantiation yields a type".
Why there is such an error showing up here? is it because of the key of the map needs to fulfill certain rules?