记录详情

Compile Error

foo.cc: In function 'void Merge(int*, int, int*, int)':
foo.cc:6:2: error: expected initializer before 'int'
  int i=0,j=0;
  ^~~
foo.cc:8:9: error: 'i' was not declared in this scope
  while( i<na && j<nb ) 
         ^
foo.cc:8:17: error: 'j' was not declared in this scope
  while( i<na && j<nb ) 
                 ^
foo.cc:11:4: error: 'g' was not declared in this scope
    g[k++]=a[i++],i++;
    ^
foo.cc:13:4: error: 'g' was not declared in this scope
    g[k++]=b[j++],j++; 
    ^
foo.cc:17:14: error: 'g' was not declared in this scope
        cout<<g[i]<<" ";
              ^
foo.cc:17:23: error: expected '}' at end of input
        cout<<g[i]<<" ";
                       ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
A10-1 有序数组的合并
比赛
2020苏青奥赛集训营(2021-3-14课后作业)
语言
C++
递交时间
2021-03-15 21:57:59
评测时间
2021-03-15 21:57:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes