单选题 难度 2
第三个参数控制顺序。
下面代码的输出是( )。 vector<int> v = {5,2,8,1}; sort(v.begin(), v.end(), greater<int>()); for (int x : v) cout << x << " ";