Josif_tepe

Untitled

Aug 21st, 2025
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 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.    
  10.     p.first = 10;
  11.     p.second = 20;
  12.    
  13.     cout << p.first << " " << p.second << endl;
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment