0_0_32863104_21949.cpp: In function 'void init_ST()':
0_0_32863104_21949.cpp:2:19: error: 'n' was not declared in this scope
for(int i=0;i<n;i++) dp[i][0]=a[i];
^
0_0_32863104_21949.cpp:2:26: error: 'dp' was not declared in this scope
for(int i=0;i<n;i++) dp[i][0]=a[i];
^
0_0_32863104_21949.cpp:2:35: error: 'a' was not declared in this scope
for(int i=0;i<n;i++) dp[i][0]=a[i];
^
0_0_32863104_21949.cpp:3:25: error: 'n' was not declared in this scope
for(int j=1;(1<<j)<=n;j++){
^
0_0_32863104_21949.cpp:5:13: error: 'dp' was not declared in this scope
dp[i][j]=max(dp[i][j-1],dp[i+(1<<(j-1))][j-1]);
^
0_0_32863104_21949.cpp:5:58: error: 'max' was not declared in this scope
dp[i][j]=max(dp[i][j-1],dp[i+(1<<(j-1))][j-1]);
^
|