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};
- cout << p.first << " " << p.second << endl;
- pair<int, int> p2 = make_pair(5, 6);
- cout << p2.first << " " << p2.second << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment