/in/foo.cc: In function 'long long int dive(int, int)':
/in/foo.cc:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=l;i<=r;i++)
^~~
/in/foo.cc:14:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return x;
^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:27:28: error: 'dp' was not declared in this scope
f[i][j]=max(f[i][j],dp[j][k-1]*dive(j+1,i));
^~
/in/foo.cc:25:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=k+1;i<=lend;i++)
^~~
/in/foo.cc:29:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
cout<<f[lend][m];
^~~~