When I compile the following code, there is something wrong about
function "f1". f1 and f2 have the same function, I just use
different method to access the single element. Could you tell me
the reason? Thanks.
====Code Begin====
#include <iostream>
using std::cout;
using std::endl;
#include <string>
using std::string;
#include <vector>
using std::vector;
#include <map>
using std::map;
class A{
public:
map<string, vector<string> > MapInA;
};