foo.c: In function 'main':
foo.c:41:13: warning: passing argument 2 of 'SetUnion' makes integer from pointer without a cast [-Wint-conversion]
41 | SetUnion(a,b,n1,n2);
| ^
| |
| int *
foo.c:3:26: note: expected 'int' but argument is of type 'int *'
3 | int SetUnion(int a[],int n1,int b[],int n2)
| ~~~~^~
foo.c:41:15: warning: passing argument 3 of 'SetUnion' makes pointer from integer without a cast [-Wint-conversion]
41 | SetUnion(a,b,n1,n2);
| ^~
| |
| int
foo.c:3:33: note: expected 'int *' but argument is of type 'int'
3 | int SetUnion(int a[],int n1,int b[],int n2)
| ~~~~^~~
foo.c:43:13: warning: passing argument 2 of 'SetUnion' makes integer from pointer without a cast [-Wint-conversion]
43 | SetUnion(a,c,n1,n3);
| ^
| |
| int *
foo.c:3:26: note: expected 'int' but argument is of type 'int *'
3 | int SetUnion(int a[],int n1,int b[],int n2)
| ~~~~^~
foo.c:43:15: warning: passing argument 3 of 'SetUnion' makes pointer from integer without a cast [-Wint-conversion]
43 | SetUnion(a,c,n1,n3);
| ^~
| |
| int
foo.c:3:33: note: expected 'int *' but argument is of type 'int'
3 | int SetUnion(int a[],int n1,int b[],int n2)
| ~~~~^~~
foo.c:34:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%d %d %d",&n1,&n2,&n3);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:36:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:38:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
38 | scanf("%d",&b[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:40:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d",&c[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务