/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void init()':
/in/foo.cc:19:48: error: 'Max' was not declared in this scope
   d2[i][j]=Max(d2[i][j-1],d2[i+(1<<(j-1))][j-1]);
                                                ^
/in/foo.cc: In function 'int RMQ(int, int)':
/in/foo.cc:27:42: error: 'Max' was not declared in this scope
  int MAX = Max(d2[l][k],d2[r-(1<<k)+1][k]);
                                          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:71:65: error: 'Min' was not declared in this scope
     dp[i][j][0]=Min(dp[i-1][j][0]+maxn,dp[i-1][j][1]+maxn*(i+j) );
                                                                 ^
/in/foo.cc:76:66: error: 'Min' was not declared in this scope
     dp[i][j][1]=Min(dp[i][j-1][1]+maxn ,dp[i][j-1][0]+maxn*(i+j) );
                                                                  ^
/in/foo.cc:84:46: error: 'Min' was not declared in this scope
   tmp=Min(tmp,Min(dp[i][n-i][0],dp[i][n-i][1]));
                                              ^
/in/foo.cc:84:47: error: 'Min' was not declared in this scope
   tmp=Min(tmp,Min(dp[i][n-i][0],dp[i][n-i][1]));
                                               ^
/in/foo.cc:84:47: error: redeclaration of '<typeprefixerror>Min'
/in/foo.cc:84:46: note: previous declaration '<typeprefixerror>Min'
   tmp=Min(tmp,Min(dp[i][n-i][0],dp[i][n-i][1]));
                                              ^

信息

递交者
类型
递交
题目
P1451 圆环取数
语言
C++
递交时间
2017-05-16 20:02:07
评测时间
2017-05-16 20:02:07
评测机
分数
0
总耗时
271ms
峰值内存
34.863 MiB