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)提供评测服务