记录详情

Compile Error

foo.cc: In function 'void MergeArray(int*, int*, int, int, int)':
foo.cc:4:14: error: 'NULL' was not declared in this scope
     if ( a== NULL || b== NULL  )
              ^~~~
foo.cc:6:9: error: 'cout' was not declared in this scope
         cout<<"输入数组为空,请检查"<<endl;
         ^~~~
foo.cc:6:49: error: 'endl' was not declared in this scope
         cout<<"输入数组为空,请检查"<<endl;
                                                 ^~~~
foo.cc:6:49: note: suggested alternative: 'enum'
         cout<<"输入数组为空,请检查"<<endl;
                                                 ^~~~
                                                 enum
foo.cc:12:9: error: 'cout' was not declared in this scope
         cout<<"输入数组长度错误,请检查"<<endl;
         ^~~~
foo.cc:12:55: error: 'endl' was not declared in this scope
         cout<<"输入数组长度错误,请检查"<<endl;
                                                       ^~~~
foo.cc:12:55: note: suggested alternative: 'enum'
         cout<<"输入数组长度错误,请检查"<<endl;
                                                       ^~~~
                                                       enum
foo.cc: In function 'void Test(char*, int*, int*, int, int, int)':
foo.cc:36:21: error: 'NULL' was not declared in this scope
     if (testName == NULL )
                     ^~~~
foo.cc:40:5: error: 'cout' was not declared in this scope
     cout<<testName<<" begins."<<endl;
     ^~~~
foo.cc:40:33: error: 'endl' was not declared in this scope
     cout<<testName<<" begins."<<endl;
                                 ^~~~
foo.cc:40:33: note: suggested alternative: 'enum'
     cout<<testName<<" begins."<<endl;
                                 ^~~~
                                 enum
foo.cc:42:5: error: 'DisplayArray' was not declared in this scope
     DisplayArray("A",arra1, len1);
     ^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2021(四) 作业第二场:见面赛
语言
C++
递交时间
2021-10-31 11:54:39
评测时间
2021-10-31 11:54:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes