/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:74: error: 'max' was not declared in this scope
                 dp[i][j]=mymax(dp[i][j],(int)(dp[i-1][j]+g*j*(t+b*(i-1)))); 
                                                                          ^
/in/foo.cc:22:74: error: 'max' was not declared in this scope
                 dp[i][j]=mymax(dp[i][j],(int)(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));
                                                           ^

信息

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