刚接触c++ 想请教一个问题

merge该怎么调用
#include
#include
using namespace std;
int main(){
vector a;
vector b;
a.push_back(1);
a.push_back(3);
a.push_back(5);
a.push_back(7);
b.push_back(2);
b.push_back(4);
b.push_back(6);
b.push_back(8);
a=merge(b);
sort(a,a+8);
for(i=0;i<8;i++){
cout<<a[i]<<" "<<endl;
}
return 0;
}

15 11 C:\Users\86131\Desktop\向量.cpp [Error] 'merge' was not declared in this scope
16 10 C:\Users\86131\Desktop\向量.cpp [Error] no match for 'operator+' (operand types are 'std::vector' and 'int')

代码没有贴全,看不到你include了什么
把#include <algorithm> 加上
参考这个例子

http://www.cplusplus.com/reference/algorithm/merge/

问题解决的话,请点下采纳