foo.c: In function 'main':
foo.c:14:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
14 | if (a[i] > a[i + 1])
| ^~
foo.c:15:14: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
15 | c = a[i]; a[i] = a[i + 1]; a[i + 1] = c;
| ^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
foo.c:9:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d", &a[i]);
| ^~~~~~~~~~~~~~~~~~
foo.c:18:8: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
18 | while (b != 0)
| ^
foo.c:16:5: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
16 | b = a[i + 1] % a[i];
| ~~^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务