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