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_30406232_7118.cpp:1:15: error: 'maxn' was not declared in this scope
 int T,n,m,v,a[maxn],b[maxn];
               ^
0_0_30406232_7118.cpp:1:23: error: 'maxn' was not declared in this scope
 int T,n,m,v,a[maxn],b[maxn];
                       ^
0_0_30406232_7118.cpp:2:8: error: 'maxn' was not declared in this scope
 int tr[maxn<<2];
        ^
0_0_30406232_7118.cpp: In function 'void build(int, int, int)':
0_0_30406232_7118.cpp:5:9: error: 'tr' was not declared in this scope
         tr[x] = a[l];
         ^
0_0_30406232_7118.cpp:5:17: error: 'a' was not declared in this scope
         tr[x] = a[l];
                 ^
0_0_30406232_7118.cpp:11:5: error: 'tr' was not declared in this scope
     tr[x] = max(tr[x<<1],tr[x<<1|1]);
     ^
0_0_30406232_7118.cpp:11:36: error: 'max' was not declared in this scope
     tr[x] = max(tr[x<<1],tr[x<<1|1]);
                                    ^
0_0_30406232_7118.cpp: In function 'void updata(int, int, int, int, int, int)':
0_0_30406232_7118.cpp:16:9: error: 'tr' was not declared in this scope
         tr[x] = v;
         ^
0_0_30406232_7118.cpp:22:5: error: 'tr' was not declared in this scope
     tr[x] = max(tr[x<<1],tr[x<<1|1]);
     ^
0_0_30406232_7118.cpp:22:36: error: 'max' was not declared in this scope
     tr[x] = max(tr[x<<1],tr[x<<1|1]);
                                    ^
0_0_30406232_7118.cpp: In function 'void query(int, int, int, int, int, int, int&)':
0_0_30406232_7118.cpp:31:8: error: 'tr' was not declared in this scope
     if(tr[x<<1]>val) query(l,mid,L,R,x<<1,val,ans);
        ^
0_0_30406232_7118.cpp:32:8: error: 'tr' was not declared in this scope
     if(tr[x<<1|1]>val) query(mid+1,r,L,R,x<<1|1,val,ans);
        ^
0_0_30406232_7118.cpp: In function 'int main()':
0_0_30406232_7118.cpp:36:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_30406232_7118.cpp:39:51: error: 'a' was not declared in this scope
         for(int i = 1;i <= n; ++i) scanf("%d",&v),a[v]=i,b[i] = v;
                                                   ^
0_0_30406232_7118.cpp:39:58: error: 'b' was not declared in this scope
         for(int i = 1;i <= n; ++i) scanf("%d",&v),a[v]=i,b[i] = v;
                                                          ^
0_0_30406232_7118.cpp:46:20: error: 'b' was not declared in this scope
                 if(b[pos] <= n)
                    ^
0_0_30406232_7118.cpp:48:17: error: 'b' was not declared in this scope
                 b[pos] = 1e7;
                 ^
0_0_30406232_7118.cpp:57:38: error: 'printf' was not declared in this scope
                 printf("%d\n",lastans);
                                      ^


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 13:36:48, Gzip enabled