sort(test0.begin(), test0.end(), [](vector<int> a, vector<int> b){return a[0] < b[0];});

    vector<vector<int>> test0 = {
        {3, 7},
        {2, 4},
        {10, 30}
    };

 
    sort(test0.begin(), test0.end(), [](vector<int> a, vector<int> b){return a[0] < b[0];});
posted @ 2022-07-19 17:01  NoodlesYang  阅读(33)  评论(0)    收藏  举报