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_30087654_30304.cpp:5:8: error: 'maxn' was not declared in this scope
  int c[maxn*4],n;
        ^
0_0_30087654_30304.cpp: In member function 'void preMax::init(int)':
0_0_30087654_30304.cpp:10:4: error: 'c' was not declared in this scope
    c[i]=0;
    ^
0_0_30087654_30304.cpp: In member function 'void preMax::update(int, int)':
0_0_30087654_30304.cpp:20:4: error: 'c' was not declared in this scope
    c[x]=max(c[x],v);
    ^
0_0_30087654_30304.cpp: In member function 'int preMax::query(int)':
0_0_30087654_30304.cpp:29:16: error: 'c' was not declared in this scope
    ret=max(ret,c[x]);
                ^
0_0_30087654_30304.cpp: At global scope:
0_0_30087654_30304.cpp:37:8: error: 'maxn' was not declared in this scope
  int c[maxn*4],n;
        ^
0_0_30087654_30304.cpp: In member function 'void postMax::init(int)':
0_0_30087654_30304.cpp:42:4: error: 'c' was not declared in this scope
    c[i]=0;
    ^
0_0_30087654_30304.cpp: In member function 'void postMax::update(int, int)':
0_0_30087654_30304.cpp:52:4: error: 'c' was not declared in this scope
    c[x]=max(c[x],v);
    ^
0_0_30087654_30304.cpp: In member function 'int postMax::query(int)':
0_0_30087654_30304.cpp:60:12: error: 'maxn' was not declared in this scope
   while (x<maxn)
            ^
0_0_30087654_30304.cpp:62:16: error: 'c' was not declared in this scope
    ret=max(ret,c[x]);
                ^
0_0_30087654_30304.cpp: In function 'int main()':
0_0_30087654_30304.cpp:70:22: error: 'n' was not declared in this scope
  while (~scanf("%d",&n))
                      ^
0_0_30087654_30304.cpp:73:16: error: 'a' was not declared in this scope
    scanf("%d",&a[i]);
                ^
0_0_30087654_30304.cpp:78:4: error: 'f' was not declared in this scope
    f[i]=p.query(a[i]-1)+1;
    ^
0_0_30087654_30304.cpp:78:17: error: 'a' was not declared in this scope
    f[i]=p.query(a[i]-1)+1;
                 ^
0_0_30087654_30304.cpp:80:4: error: 'g' was not declared in this scope
    g[i]=max(f[i],q.query(a[i]+1)+1);
    ^
0_0_30087654_30304.cpp:87:4: error: 's' was not declared in this scope
    s[i]=p.query(a[i]-1)+1;
    ^
0_0_30087654_30304.cpp:87:17: error: 'a' was not declared in this scope
    s[i]=p.query(a[i]-1)+1;
                 ^
0_0_30087654_30304.cpp:89:4: error: 't' was not declared in this scope
    t[i]=max(s[i],q.query(a[i]+1)+1);
    ^
0_0_30087654_30304.cpp:94:16: error: 'f' was not declared in this scope
    tmp=max(tmp,f[i]+s[i]-1);
                ^
0_0_30087654_30304.cpp:94:21: error: 's' was not declared in this scope
    tmp=max(tmp,f[i]+s[i]-1);
                     ^


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-29 19:47:37, Gzip enabled