MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/set & pair/sortingInPairs.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5 return {3,4};
6}
7int main() {
8 //sorting array vectors of pairs
9 pair<int, int> p[5]; //an array of 5 pairs
10 p[0]={1,2}; p[1]={5,2}; p[2]={8,1}; p[3]={1,0}; p[4]={3,4};
11 sort(p,p+5);
12 cout<<p->first<<" "<<p->second;
13
14 return 0;
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected