/in/foo.cc: In function 'int main()':
/in/foo.cc:15:47: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%ld %ld %ld %ld %ld",&n,&r,&g,&b,&t);
^
/in/foo.cc:15:47: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=]
/in/foo.cc:15:47: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=]
/in/foo.cc:15:47: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'int*' [-Wformat=]
/in/foo.cc:15:47: warning: format '%ld' expects argument of type 'long int*', but argument 6 has type 'int*' [-Wformat=]
/in/foo.cc:20:67: error: 'max' was not declared in this scope
dp[i][j]=mymax(dp[i][j],dp[i-1][j]+g*j*(t+b*(i-1)));
^
/in/foo.cc:22:67: error: 'max' was not declared in this scope
dp[i][j]=mymax(dp[i][j],dp[i][j-1]+g*(j-1)*(t+b*i));
^
/in/foo.cc:23:59: error: 'max' was not declared in this scope
ans=mymax(ans,dp[i][j]+(n-i-j)*(g*j+r)*(t+i*b));
^
/in/foo.cc:25:23: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
printf("%ld\n",ans);
^