skip to Main Content

Ubuntu – Why did std::sort use this simple strict weak ordering compare still crash?

Here is my code: #include<vector> #include<algorithm> #include<iostream> using namespace std; void test() { vector<vector<int>> info = {{0,0,999}, {0,1,1000}, {0,2,1001}, {0,3,1002}, {0,4,1003}, {0,5,1004}, {0,6,1005}, {0,7,1006}, {1,0,1000}, {1,1,999}, {1,2,1000}, {1,3,1001}, {1,4,1002}, {1,5,1003}, {1,6,1004}, {1,7,1005}, {2,0,1001}, {2,1,1000}, {2,2,999}, {2,3,1000}, {2,4,1001}, {2,5,1002}, {2,6,1003}, {2,7,1004},…

VIEW QUESTION
Back To Top
Search