foo.cc: In function 'int main()':
foo.cc:4:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
4 | #define rep(i,a,b) for (int i=(a); i<=(b); i++)
| ^~~
foo.cc:17:5: note: in expansion of macro 'rep'
17 | rep(i,1,m) scanf("%d",&a[i]); a[0]=0; a[m+1]=n+1;
| ^~~
foo.cc:17:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
17 | rep(i,1,m) scanf("%d",&a[i]); a[0]=0; a[m+1]=n+1;
| ^
foo.cc:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d%d",&n,&m); clr(f);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:17:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | rep(i,1,m) scanf("%d",&a[i]); a[0]=0; a[m+1]=n+1;
| ~~~~~^~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务