/in/foo.cc: In function 'void Prepare()':
/in/foo.cc:29:16: warning: unused variable 'k' [-Wunused-variable]
long long i,j,k;
^
/in/foo.cc: In function 'void Change(long long int, long long int)':
/in/foo.cc:50:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=1;i<=knum;++i)
^~~
/in/foo.cc:52:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(i=x;i<=ed[K[x]];i++)
^~~
/in/foo.cc: In function 'void Solve(long long int, long long int)':
/in/foo.cc:76:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=K[l]+1;i<=K[r]-1;++i)
^~~
/in/foo.cc:78:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(i=l;i<=ed[K[l]];++i)
^~~