0_0_13158992_17221.cpp:3:16: error: expected initializer before numeric constant
const int maxn 100005
^
0_0_13158992_17221.cpp: In function 'int main()':
0_0_13158992_17221.cpp:17:16: error: 'height' was not declared in this scope
scanf("%d",&height[i]);
^
0_0_13158992_17221.cpp:18:4: error: 'left' was not declared in this scope
left[i]=i;
^
0_0_13158992_17221.cpp:19:4: error: 'right' was not declared in this scope
right[i]=i;
^
0_0_13158992_17221.cpp:21:3: error: 'height' was not declared in this scope
height[0]=0;height[n+1]=0;
^
0_0_13158992_17221.cpp:24:17: error: 'left' was not declared in this scope
while(height[left[i]-1]>=height[i]) left[i]=left[left[i]-1];
^
0_0_13158992_17221.cpp:28:17: error: 'right' was not declared in this scope
while(height[right[i]+1]>=height[i]) right[i]=right[right[i]+1];
^
0_0_13158992_17221.cpp:32:20: error: 'right' was not declared in this scope
tmp=(long long)(right[i]-left[i]+1)*height[i];
^
0_0_13158992_17221.cpp:32:29: error: 'left' was not declared in this scope
tmp=(long long)(right[i]-left[i]+1)*height[i];
^
|