/in/foo.cc: In function 'int main()':
/in/foo.cc:13:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++)
^~~
/in/foo.cc:15:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
y=i+1;
^
/in/foo.cc:18:21: warning: 'i' is used uninitialized in this function [-Wuninitialized]
dp[i][j]=dp[x][j-1]+dp[y][j-1];
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:16:13: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(x==0)x=n;
^~