记录详情

Compile Error

foo.cc: In function 'int sort(int*, int)':
foo.cc:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
foo.cc: In function 'int MergeSub(int*, int)':
foo.cc:25:37: error: 'j' was not declared in this scope
   25 |                 if (a[i] > a[i + 1])j++;
      |                                     ^
foo.cc:26:21: error: 'j' was not declared in this scope
   26 |                 if (j % 2 == 0)sort(a, j - 1);
      |                     ^
foo.cc:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
   28 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:33:17: error: 'n' was not declared in this scope; did you mean 'nb'?
   33 |         scan(a, n);
      |                 ^
      |                 nb
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A10-2 有序子序列的合并
语言
C++
递交时间
2024-01-02 13:47:32
评测时间
2024-01-02 13:47:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes