记录详情

Compile Error

/in/foo.c: In function 'MergeSubs':
/in/foo.c:44:17: error: 'nextStart' undeclared (first use in this function)
         start = nextStart + 1;
                 ^~~~~~~~~
/in/foo.c:44:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'main':
/in/foo.c:50:11: warning: too many arguments for format [-Wformat-extra-args]
     scanf("%d", &n1,&n2);
           ^~~~
/in/foo.c:55:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (int i = 0; i < n2; i++)
     ^~~
/in/foo.c:57:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  MergeSubs(a1, n1);
  ^~~~~~~~~

信息

递交者
类型
递交
题目
A10-2 有序子序列的合并
语言
C
递交时间
2025-01-17 23:51:21
评测时间
2025-01-17 23:51:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes