fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. struct Play{
  7. int min, down, yard, locat;
  8. string Description, offname, defname;
  9. double relevance;
  10. };
  11.  
  12. static bool customCompare(const Play &x, const Play &y)
  13. {
  14. return (x.relevance < y.relevance);
  15. }
  16.  
  17. void printResults()
  18. {
  19. vector<Play> vecData;
  20. Play p1;
  21. Play p2;
  22. vecData.push_back(p1);
  23. vecData.push_back(p2);
  24. sort(vecData.begin(),vecData.end(), customCompare);
  25. }
  26. int main() {
  27. // your code goes here
  28. return 0;
  29. }
Success #stdin #stdout 0s 3304KB
stdin
Standard input is empty
stdout
Standard output is empty