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_36315354_21478.cpp:8:8: error: array bound is not an integer constant before ']' token
 int a[N], b[N];
        ^
0_0_36315354_21478.cpp:8:14: error: array bound is not an integer constant before ']' token
 int a[N], b[N];
              ^
0_0_36315354_21478.cpp:9:12: error: array bound is not an integer constant before ']' token
 int d1max[N][22];
            ^
0_0_36315354_21478.cpp:10:12: error: array bound is not an integer constant before ']' token
 int d2max[N][22];
            ^
0_0_36315354_21478.cpp: In function 'void i1mx(int, int*)':
0_0_36315354_21478.cpp:15:25: error: 'd1max' was not declared in this scope
     for(int i=0;i<n;i++)d1max[i][0]=d[i];
                         ^
0_0_36315354_21478.cpp:18:13: error: 'd1max' was not declared in this scope
             d1max[i][j]=max(d1max[i][j-1],d1max[i+(1<<(j-1))][j-1]);
             ^
0_0_36315354_21478.cpp: In function 'int g1mx(int, int)':
0_0_36315354_21478.cpp:24:17: error: 'd1max' was not declared in this scope
     return max( d1max[L][k],d1max[R-(1<<k)+1][k] );
                 ^
0_0_36315354_21478.cpp: In function 'void i2mx(int, int*)':
0_0_36315354_21478.cpp:28:25: error: 'd2max' was not declared in this scope
     for(int i=0;i<n;i++)d2max[i][0]=d[i];
                         ^
0_0_36315354_21478.cpp:31:13: error: 'd2max' was not declared in this scope
             d2max[i][j]=max(d2max[i][j-1],d2max[i+(1<<(j-1))][j-1]);
             ^
0_0_36315354_21478.cpp: In function 'int g2mx(int, int)':
0_0_36315354_21478.cpp:37:17: error: 'd2max' was not declared in this scope
     return max( d2max[L][k],d2max[R-(1<<k)+1][k] );
                 ^
0_0_36315354_21478.cpp: In function 'void solve()':
0_0_36315354_21478.cpp:42:12: error: 'd1max' was not declared in this scope
     memset(d1max, 0 ,sizeof d1max);
            ^
0_0_36315354_21478.cpp:43:12: error: 'd2max' was not declared in this scope
     memset(d2max, 0, sizeof d2max);
            ^
0_0_36315354_21478.cpp:48:16: error: 'a' was not declared in this scope
         cin >> a[i];
                ^
0_0_36315354_21478.cpp:50:16: error: 'b' was not declared in this scope
         cin >> b[i];
                ^
0_0_36315354_21478.cpp:51:12: error: 'a' was not declared in this scope
     i1mx(n,a);
            ^
0_0_36315354_21478.cpp:52:12: error: 'b' was not declared in this scope
     i2mx(n,b);
            ^


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-16 12:48:01, Gzip enabled