记录详情

Compile Error

/in/foo.cc: In function 'int InterSet(int*, int, int*, int, int*)':
/in/foo.cc:28:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(k1=-1 && k2==-1)
                     ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:48:9: error: redeclaration of 'int c [10000]'
  int c[N], ne;
         ^
/in/foo.cc:46:6: note: 'int c [10000]' previously declared here
  int c[N], nc;
      ^
/in/foo.cc:49:26: error: 'r' was not declared in this scope
  ne=InterSet(a,n,  b,g,  r);
                          ^
/in/foo.cc:51:9: error: 'e' was not declared in this scope
  Output(e, ne);
         ^

信息

递交者
类型
自测
题目
A10-4 集合的交集
语言
C++
递交时间
2024-12-02 17:03:16
评测时间
2024-12-02 17:03:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes