Compile Error

foo.cc: In function 'int bl(int*, int, int)':
foo.cc:33:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(m=v[i])
      ~^~~~~
foo.cc: In function 'int bj(int*, int, int*, int, int*)':
foo.cc:44:6: error: 'i' was not declared in this scope
  for(i=0;i<n;i++)
      ^
foo.cc:44:12: error: 'n' was not declared in this scope
  for(i=0;i<n;i++)
            ^
foo.cc:48:6: error: 'i' was not declared in this scope
  for(i=0;i<n;i++)
      ^
foo.cc:48:12: error: 'n' was not declared in this scope
  for(i=0;i<n;i++)
            ^
foo.cc: In function 'int main()':
foo.cc:66:10: error: 'n' was not declared in this scope
  n3=bj(a,n);
          ^
foo.cc:66:10: note: suggested alternative: 'n3'
  n3=bj(a,n);
          ^
          n3
foo.cc:68:1: error: expected ';' before '}' token
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1145 数组模拟集合--并集
语言
C++
递交时间
2021-10-30 20:42:16
评测时间
2021-10-30 20:42:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes