记录详情

Compile Error

foo.cc:31:39: error: ISO C++ forbids declaration of 'setinter' with no type [-fpermissive]
 setinter(int a[],int na,int b[],int nb)
                                       ^
foo.cc: In function 'int setinter(int*, int, int*, int)':
foo.cc:31:1: error: ambiguating new declaration of 'int setinter(int*, int, int*, int)'
 setinter(int a[],int na,int b[],int nb)
 ^~~~~~~~
foo.cc:4:6: note: old declaration 'void setinter(int*, int, int*, int)'
 void setinter(int a[],int na,int b[],int nb);
      ^~~~~~~~
foo.cc:33:6: warning: unused variable 'l' [-Wunused-variable]
  int l=0; 
      ^
foo.cc:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: At global scope:
foo.cc:48:27: error: ISO C++ forbids declaration of 'Serch' with no type [-fpermissive]
 Serch(int a[],int n, int x)
                           ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

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