/in/foo.cc: In function 'void solve(int, int)':
/in/foo.cc:31:27: warning: operation on 'j' may be undefined [-Wsequence-point]
31 | while(j<=mid) b[j]=a[j++];
| ~^~
/in/foo.cc:31:27: warning: operation on 'j' may be undefined [-Wsequence-point]
/in/foo.cc: In function 'int main()':
/in/foo.cc:42:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
42 | for(int i=1;i<=n;i++) solve(i,n),printf("%d\n",ans);return 0;
| ^~~
/in/foo.cc:42:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
42 | for(int i=1;i<=n;i++) solve(i,n),printf("%d\n",ans);return 0;
| ^~~~~~