foo.c: In function 'main':
foo.c:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
7 | for(i=0;i<n;i++)
| ^~~
foo.c:9:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
9 | m=m%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",&a[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务