/in/foo.cc: In function 'void rotate(int)':
/in/foo.cc:36:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else lc[x] = y, rc[y] = b; upd(y); upd(x);
^~~~
/in/foo.cc:36:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
else lc[x] = y, rc[y] = b; upd(y); upd(x);
^~~
/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:70:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1;
~~^~~
/in/foo.cc: In function 'void change(int, int, int, int, int, int)':
/in/foo.cc:82:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1; down(p);
~~^~~
/in/foo.cc: In function 'int query(int, int, int, int, int)':
/in/foo.cc:91:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + r >> 1, res = 0; down(p);
~~^~~