fork download
  1. #include <iostream>
  2. #include <map>
  3. #include <utility>
  4. using namespace std;
  5.  
  6. int main() {
  7. std::map< std::pair<int, int>, long long> m;
  8. m.insert( make_pair( make_pair(1,1), 1000ll ));
  9. cout << m[make_pair(1,1)] << endl;
  10. m[make_pair(1,1)] = 1000ll;
  11. cout << m[make_pair(1,1)] << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3432KB
stdin
Standard input is empty
stdout
1000
1000