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_36297641_25020.cpp:5:31: error: expected initializer before 'Left'
 int ves[Max][Max],a[Max][Max] Left[Max][Max], Right[Max][Max];
                               ^
0_0_36297641_25020.cpp: In function 'int main()':
0_0_36297641_25020.cpp:18:4: error: 'Left' was not declared in this scope
    Left[i][j] =  j; //初始化Right和Left,使他们值为点所在纵坐标
    ^
0_0_36297641_25020.cpp:19:4: error: 'Right' was not declared in this scope
    Right[i][j] = j;
    ^
0_0_36297641_25020.cpp:20:4: error: 'a' was not declared in this scope
    a[i][j] = 1; //初始化up使其值为1
    ^
0_0_36297641_25020.cpp:24:39: error: 'a' was not declared in this scope
             if(ves[i][j]>=ves[i-1][j])a[i][j]=a[i-1][j]+1;
                                       ^
0_0_36297641_25020.cpp:29:12: error: 'a' was not declared in this scope
         if(a[i][j]<=a[i][j-1])Left[i][j]=Left[i][j-1];
            ^
0_0_36297641_25020.cpp:29:31: error: 'Left' was not declared in this scope
         if(a[i][j]<=a[i][j-1])Left[i][j]=Left[i][j-1];
                               ^
0_0_36297641_25020.cpp:34:12: error: 'a' was not declared in this scope
         if(a[i][j]<=a[i][j+1])Right[i][j]=Right[i][j+1];
            ^
0_0_36297641_25020.cpp:34:31: error: 'Right' was not declared in this scope
         if(a[i][j]<=a[i][j+1])Right[i][j]=Right[i][j+1];
                               ^
0_0_36297641_25020.cpp:46:26: error: 'Right' was not declared in this scope
             sum=max(sum,(Right[i][j]-Left[i][j]+1)*a[i][j]);
                          ^
0_0_36297641_25020.cpp:46:38: error: 'Left' was not declared in this scope
             sum=max(sum,(Right[i][j]-Left[i][j]+1)*a[i][j]);
                                      ^
0_0_36297641_25020.cpp:46:52: error: 'a' was not declared in this scope
             sum=max(sum,(Right[i][j]-Left[i][j]+1)*a[i][j]);
                                                    ^


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-17 16:52:00, Gzip enabled