/in/foo.cc: In function 'void solve(int, int)':
/in/foo.cc:52:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<maxd;i++) printf("%lld ",ans[i]);printf("%lld\n",ans[maxd]);
^~~
/in/foo.cc:52:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=0;i<maxd;i++) printf("%lld ",ans[i]);printf("%lld\n",ans[maxd]);
^~~~~~
/in/foo.cc:45:9: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
int ok = 0;
^~