记录详情

Compile Error

foo.cc: In function 'int UnionSet(int*, int, int*, int, int*)':
foo.cc:6:5: error: expected initializer before 'int'
     int k=0;
     ^~~
foo.cc:8:16: error: 'k' was not declared in this scope
   if( Search(c,k, a[i])==-1  )  
                ^
foo.cc:8:7: error: 'Search' was not declared in this scope
   if( Search(c,k, a[i])==-1  )  
       ^~~~~~
foo.cc:8:7: note: suggested alternative: 'bsearch'
   if( Search(c,k, a[i])==-1  )  
       ^~~~~~
       bsearch
foo.cc:11:16: error: 'k' was not declared in this scope
   if( Search(c,k, b[i])==-1  )
                ^
foo.cc:11:7: error: 'Search' was not declared in this scope
   if( Search(c,k, b[i])==-1  )
       ^~~~~~
foo.cc:11:7: note: suggested alternative: 'bsearch'
   if( Search(c,k, b[i])==-1  )
       ^~~~~~
       bsearch
foo.cc:13:9: error: 'k' was not declared in this scope
  return k;
         ^
foo.cc:13:10: error: expected '}' at end of input
  return k;
          ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

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