/in/foo.cc: In function 'void solve(int, int)':
/in/foo.cc:52:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
vector<int>tmp;int mid=l+r>>1;
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:67:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<=n;++i) printf("%d ",q[i]);puts("");
^~~
/in/foo.cc:67:43: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=0;i<=n;++i) printf("%d ",q[i]);puts("");
^~~~