foo.cc: In function 'int main()':
foo.cc:16:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
16 | if(a[j]<a[j-1])
| ^~
foo.cc:18:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
18 | ok=0;cnt++;
| ^~
foo.cc:20:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
20 | if(ok==1);
| ^~
foo.cc:21:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
21 | {
| ^
foo.cc:5:24: warning: unused variable 'k' [-Wunused-variable]
5 | int n,a[20000],k,cnt;
| ^
foo.cc:5:26: warning: 'cnt' may be used uninitialized [-Wmaybe-uninitialized]
5 | int n,a[20000],k,cnt;
| ^~~
[Hydro](https://hydro.ac)提供评测服务