fork download
  1. #include <iostream>
  2. #include <map>
  3.  
  4. using namespace std;
  5.  
  6. int main(void)
  7. {
  8. map<int,string> Map;
  9.  
  10. Map.insert(make_pair(5,"test"));
  11.  
  12. cout<<Map[5]<<endl;
  13. }
  14.  
Success #stdin #stdout 0s 3432KB
stdin
Standard input is empty
stdout
test