/in/foo.cc: In function 'int main()':
/in/foo.cc:6:9: error: storage size of 'a1' isn't known
int a1[],a2[],a3[];
^
/in/foo.cc:6:14: error: storage size of 'a2' isn't known
int a1[],a2[],a3[];
^
/in/foo.cc:6:19: error: storage size of 'a3' isn't known
int a1[],a2[],a3[];
^
/in/foo.cc:7:12: error: redeclaration of 'int n2'
int n1,n2,n2;
^~
/in/foo.cc:7:9: note: 'int n2' previously declared here
int n1,n2,n2;
^~
/in/foo.cc:14:7: error: 'n3' was not declared in this scope
cin>>n3;
^~
/in/foo.cc:17:22: error: 'SetInter' was not declared in this scope
SetInter(a1,n1,a2,n2);
^
/in/foo.cc: In function 'void SetInter(int*, int, int*, int)':
/in/foo.cc:28:11: error: 'array' was not declared in this scope
cout<<array[i]
^~~~~