Josif_tepe

Untitled

May 15th, 2026
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <map>
  3. using namespace std;
  4.  
  5. int main() {
  6.     map<int, string> m = {{1, "Geeks"},
  7.              {2, "For"}, {3, "Geeks"}};
  8.  
  9.     cout << m[1] << endl;
  10.     cout << m.at(2);
  11.  
  12.     return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment