Created
April 4, 2023 18:09
-
-
Save Caesar-Victory/75e5fcae08c25e04bb097515091212ea to your computer and use it in GitHub Desktop.
strict weak ordering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| auto less = [](int a, int b){ | |
| return a >= b; | |
| }; | |
| vector<int> array{65,100,29,73,85,1,92,16,95,41,7,33,100,83,40,37,99,9,63,25,62,9,43,55,77,49,62,94,28,82,80,97,55,12,34}; | |
| sort(array.sort(), array.end(), less); | |
| cout << "Hello World"; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment