Facebook
From Burly Pintail, 1 Year ago, written in C++.
Embed
Download Paste or View Raw
Hits: 104
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     #ifndef ONLINE_JUDGE
  7.     freopen("input.txt", "r+", stdin);
  8.     freopen("output.txt", "w+", stdout);
  9.     #endif
  10.   vector<pair<int,int>>v;
  11.   v.push_back(make_pair(1,2));
  12.   v.push_back(make_pair(2,3));
  13.   v.push_back(make_pair(3,4));
  14.   for(int p:v)
  15.     cout<<p.first<<","<<p.second<<endl;
  16. }