/in/foo.cc: In function 'void imp()':
/in/foo.cc:21:10: warning: unused variable 'k' [-Wunused-variable]
int i,j,k;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:51:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=num;i>=1;i--)cout<<ans[i]<<" ";cout<<top[n];
^~~
/in/foo.cc:51:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(i=num;i>=1;i--)cout<<ans[i]<<" ";cout<<top[n];
^~~~
/in/foo.cc:38:8: warning: unused variable 'j' [-Wunused-variable]
int i,j,x,y,z;
^