Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <utility>
- using namespace std;
- int main() {
- pair<int, int> p = {2, 3};
- p.first = 10;
- p.second = 20;
- cout << p.first << " " << p.second << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment