比如有这么个数组int a[]={1, 1, 2, 2, 3, 3, }; 传统的less<int>选第三个元素应该这么写nth_element(a,a+2,a+6); 传统的less 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交