/in/foo.cc: In function 'int SelInter(int*, int, int*, int)':
/in/foo.cc:10:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(array1[i]=array2[j])
^
/in/foo.cc:17:14: warning: array subscript is above array bounds [-Warray-bounds]
return m[100];
~~~~~^
/in/foo.cc:7:10: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(int i;i<k1;i++)
^
/in/foo.cc:9:11: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(int j;j<k2;j++){
^
/in/foo.cc: In function 'int main(int, char**)':
/in/foo.cc:17:14: warning: array subscript is above array bounds [-Warray-bounds]
return m[100];
~~~~~^
/in/foo.cc:17:14: warning: array subscript is above array bounds [-Warray-bounds]
return m[100];
~~~~~^
/in/foo.cc:7:10: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(int i;i<k1;i++)
^
/in/foo.cc:7:10: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.cc:9:14: warning: 'n3' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(int j;j<k2;j++){
~^~~
/in/foo.cc:21:42: note: 'n3' was declared here
int a1[10000],a2[10000],a3[10000],n1,n2,n3;
^~
/in/foo.cc:9:11: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(int j;j<k2;j++){
^
/in/foo.cc:9:11: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]