fork download
  1. #include <algorithm>
  2. #include <iostream>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<pair<int, int>> foo{{1,2},{2,1}};
  8. if (none_of(begin(foo), end(foo), [](auto p){return p.first > p.second;})) {
  9. cout << "None" << endl;
  10. } else {
  11. cout << "Some" << endl;
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Some