foo.c: In function 'Merge':
foo.c:10:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
10 | for(i=0;i<n-1;i++)
| ^~~
foo.c:16:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
16 | for(i=0;i<n;i++)
| ^~~
foo.c: In function 'main':
foo.c:30:10: warning: passing argument 2 of 'Merge' makes integer from pointer without a cast [-Wint-conversion]
30 | Merge(a,b,n1,n2);
| ^
| |
| int *
foo.c:3:23: note: expected 'int' but argument is of type 'int *'
3 | int Merge(int a[],int n1,int b[],int n2)
| ~~~~^~
foo.c:30:12: warning: passing argument 3 of 'Merge' makes pointer from integer without a cast [-Wint-conversion]
30 | Merge(a,b,n1,n2);
| ^~
| |
| int
foo.c:3:30: note: expected 'int *' but argument is of type 'int'
3 | int Merge(int a[],int n1,int b[],int n2)
| ~~~~^~~
foo.c:32:10: warning: passing argument 2 of 'Merge' makes integer from pointer without a cast [-Wint-conversion]
32 | Merge(a,c,n1,n3);
| ^
| |
| int *
foo.c:3:23: note: expected 'int' but argument is of type 'int *'
3 | int Merge(int a[],int n1,int b[],int n2)
| ~~~~^~
foo.c:32:12: warning: passing argument 3 of 'Merge' makes pointer from integer without a cast [-Wint-conversion]
32 | Merge(a,c,n1,n3);
| ^~
| |
| int
foo.c:3:30: note: expected 'int *' but argument is of type 'int'
3 | int Merge(int a[],int n1,int b[],int n2)
| ~~~~^~~
foo.c:23:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d %d %d",&n1,&n2,&n3);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:25:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:27:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%d",&b[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:29:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%d",&c[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务