/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]));
^