/in/foo.cc:7:10: error: '::main' must return 'int'
int main(){
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:26:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]>b[k])
^~
/in/foo.cc:28:15: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
ans=max(ans,dp[i][j]);
^~~
/in/foo.cc:23:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=1;j<=n;j++)
^~~
/in/foo.cc:33:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
printf("%lld\n",ans);
^~~~~~