Josif_tepe

Untitled

Aug 21st, 2025
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <utility>
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7.     pair<int, int> p = {2, 3};
  8.    
  9.     cout << p.first << " " << p.second << endl;
  10.    
  11.     pair<int, int> p2 = make_pair(5, 6);
  12.     cout << p2.first << " " << p2.second << endl;
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment