记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:5: error: 'Record' was not declared in this scope
     Record* A = new Record[na];
     ^~~~~~
/in/foo.cc:9:13: error: 'A' was not declared in this scope
     Record* A = new Record[na];
             ^
/in/foo.cc:9:21: error: 'Record' does not name a type
     Record* A = new Record[na];
                     ^~~~~~
/in/foo.cc:15:13: error: 'B' was not declared in this scope
     Record* B = new Record[nb];
             ^
/in/foo.cc:15:21: error: 'Record' does not name a type
     Record* B = new Record[nb];
                     ^~~~~~
/in/foo.cc:21:20: error: 'MergeSort' was not declared in this scope
     MergeSort(A, na);   // 对数组A进行归并排序
                    ^
/in/foo.cc:46:14: error: type '<type error>' argument given to 'delete', expected pointer
     delete[] A;
              ^
/in/foo.cc:47:14: error: type '<type error>' argument given to 'delete', expected pointer
     delete[] B;
              ^

信息

递交者
类型
递交
题目
P1016 OO3-3 有序顺序表类的合并运算
语言
C++
递交时间
2024-02-04 14:01:32
评测时间
2024-02-04 14:01:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes