记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:10:6: warning: unused variable 'k' [-Wunused-variable]
  int k=0;
      ^
foo.cc: In function 'int Unique(int*, int)':
foo.cc:44:6: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
   if(search(a,i-k,a[i])!=-1
      ^~~~~~
foo.cc:45:4: error: expected ';' before 'k'
    k++;
    ^
foo.cc:44:24: warning: value computed is not used [-Wunused-value]
   if(search(a,i-k,a[i])!=-1
      ~~~~~~~~~~~~~~~~~~^~~~
foo.cc:46:3: error: expected primary-expression before 'else'
   else
   ^~~~
foo.cc:46:3: error: expected ')' before 'else'
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
A10-3 数组的去重
比赛
2020苏青奥赛集训营(2021-3-7课后作业)
语言
C++
递交时间
2021-03-08 22:31:24
评测时间
2021-03-08 22:31:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes