数据结构里的 第3、18报错,不知怎么改

#include
using namespace std;
#include "SeqList.cpp"
int main()
{
int r[5];
int n, x, loc, j;
cout << "请输入:" << endl;
cin >> n;
double* r = new double[n];
double a;
cout << "请输入数组:" << endl;
for (int i = 0;i < n;i++)
{
cin >> a;
r[i] = a;
}
SeqListL(r, n);
cout << "执行插入操作前数据为:" << endl;
L.PrintList();
cout << "请输入要插入的元素及其位置:" << endl;
cin >> x >> loc;
try {
L.Insert(loc, x);
}
catch (char* s)
{
cout << 123 << endl;
cout << S << endl;
}
cout << "执行插入操作后顺序表为:" << endl;
L.printList();
cout << "请输入要删除元素的位置:" << endl;
cin >> i;
cout << "执行删除操作前顺序表为:" << endl;
L.PrintList();
try
{
L.Delete(i);
}
catch (char* s)
{
cout << s << endl;
}
cout << "删除后顺序表为:" << endl;
L.PrintList();
system("pause");
return 0;
}

#include "SeqList.cpp"
你有没有这个文件,还是SeqList.h?
L.PrintList();----L又是从哪里冒出来的?

SeqList.cpp是不是没有引入进来,提示没找到?

img