Advertisement
nicuvlad76

Untitled

Dec 17th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <algorithm>
  4. #include <vector>
  5. #define N 1005
  6. using namespace std;
  7. ifstream fin(".in");
  8. ofstream fout(".out");
  9. pair<int ,int> P(1,2);
  10.  
  11. int main()
  12. {
  13. cout<<P.first<<" "<<P.second<<"\n";
  14. P.first=10;
  15. P.second=20;
  16.  
  17. cout<<P.first<<" "<<P.second<<"\n";
  18.  
  19. P=make_pair(30, 40);
  20.  
  21. cout<<P.first<<" "<<P.second<<"\n";
  22. return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement