foo.c: In function 'main':
foo.c:9:13: warning: passing argument 1 of 'BubbleSort' from incompatible pointer type [-Wincompatible-pointer-types]
9 | BubbleSort(&x,n);
| ^~
| |
| int (*)[100000]
foo.c:2:22: note: expected 'int *' but argument is of type 'int (*)[100000]'
2 | void BubbleSort(int *a,int n);
| ~~~~~^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d%d",&n,&m);
| ^~~~~~~~~~~~~~~~~~~
foo.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d",&x[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务