F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-27 00:17:37, Gzip enabled