foo.cc: In function 'int main()':
foo.cc:63:9: error: invalid conversion from 'int' to 'int*' [-fpermissive]
63 | Output(a, na);
| ^
| |
| int
foo.cc:4:17: note: initializing argument 1 of 'void Output(int*, int)'
4 | void Output(int a[], int n)
| ~~~~^~~
foo.cc:64:9: error: invalid conversion from 'int' to 'int*' [-fpermissive]
64 | Output(b, nb);
| ^
| |
| int
foo.cc:4:17: note: initializing argument 1 of 'void Output(int*, int)'
4 | void Output(int a[], int n)
| ~~~~^~~
foo.cc:66:16: error: invalid conversion from 'int' to 'int*' [-fpermissive]
66 | nc = UnionSet(a,na, b,nb, c);
| ^
| |
| int
foo.cc:45:18: note: initializing argument 1 of 'int UnionSet(int*, int, int*, int, int*)'
45 | int UnionSet(int a[],int na, int b[],int nb, int c[])
| ~~~~^~~
foo.cc:66:22: error: invalid conversion from 'int' to 'int*' [-fpermissive]
66 | nc = UnionSet(a,na, b,nb, c);
| ^
| |
| int
foo.cc:45:34: note: initializing argument 3 of 'int UnionSet(int*, int, int*, int, int*)'
45 | int UnionSet(int a[],int na, int b[],int nb, int c[])
| ~~~~^~~
[Hydro](https://hydro.ac)提供评测服务