fork(125) download
  1. #include <iostream>
  2. #include <utility>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. pair<int, int> adjs[] = {make_pair(1, 2), make_pair(3, 4)};
  8. cout << "{ " << adjs[1].first << ", " << adjs[1].second << " }" << endl;
  9. }
  10.  
Success #stdin #stdout 0s 2684KB
stdin
Standard input is empty
stdout
{ 3, 4 }