0_0_32286191_9115.cpp: In function 'int rmq(int, int)':
0_0_32286191_9115.cpp:2:26: error: 'log' was not declared in this scope
int k=(int) log(r-l+1)/log(2);
^
0_0_32286191_9115.cpp:3:9: error: redeclaration of 'int k'
int k=log(r-l+1)/log(2);
^
0_0_32286191_9115.cpp:2:9: note: 'int k' previously declared here
int k=(int) log(r-l+1)/log(2);
^
0_0_32286191_9115.cpp:4:16: error: 'dp' was not declared in this scope
return max(dp[l][k],dp[r-(1<<k)+1][k]);
^
0_0_32286191_9115.cpp:4:42: error: 'max' was not declared in this scope
return max(dp[l][k],dp[r-(1<<k)+1][k]);
^
|