/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:52: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
     scanf("%lld %lld %lld %lld %lld",&n,&r,&g,&b,&t);
                                                    ^
/in/foo.cc:15:52: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
/in/foo.cc:15:52: warning: format '%lld' expects argument of type 'long long int*', but argument 4 has type 'int*' [-Wformat=]
/in/foo.cc:15:52: warning: format '%lld' expects argument of type 'long long int*', but argument 5 has type 'int*' [-Wformat=]
/in/foo.cc:15:52: warning: format '%lld' expects argument of type 'long 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:24: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
     printf("%lld\n",ans);
                        ^

信息

递交者
类型
递交
题目
P1417 魔法塔防
语言
C++
递交时间
2020-06-05 22:01:39
评测时间
2020-06-05 22:01:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes