单选题 难度 1
一行代码排好序。
下面代码的输出是( )。 vector<int> v = {5,2,8,1}; sort(v.begin(), v.end()); for (int x : v) cout << x << " ";