0_0_25175129_18300.cpp: In function 'void RMQ_make()':
0_0_25175129_18300.cpp:4:24: error: 'n' was not declared in this scope
for(j = 1; (1<<j)<=n; ++j)
^
0_0_25175129_18300.cpp:7:13: error: 'd' was not declared in this scope
d[i][j] = max(d[i][j-1],d[i+(1<<(j-1))][j-1]);
^
0_0_25175129_18300.cpp:7:57: error: 'max' was not declared in this scope
d[i][j] = max(d[i][j-1],d[i+(1<<(j-1))][j-1]);
^
0_0_25175129_18300.cpp: In function 'int RMQ(int, int)':
0_0_25175129_18300.cpp:14:16: error: 'd' was not declared in this scope
return max(d[L][k],d[R-(1<<k)+1][k]);
^
0_0_25175129_18300.cpp:14:40: error: 'max' was not declared in this scope
return max(d[L][k],d[R-(1<<k)+1][k]);
^
|