fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5.  
  6. bool compare(pair<int,int> &p,pair<int,int> &q)
  7. {
  8. if(p.first==q.first && p.first==q.first ) return true;
  9. else return false;
  10. }
  11.  
  12.  
  13. int main()
  14. {
  15. vector<pair<int,int> >V;
  16. V.push_back(make_pair(2,2));
  17. V.push_back(make_pair(2,2));
  18. equal_to<pair<int,int>> P;
  19. cout<<P(V[0],V[1])<<endl;
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
1