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_27894804_9883.cpp:12:7: error: 'maxn' was not declared in this scope
 int c[maxn+1];
       ^
0_0_27894804_9883.cpp: In function 'int sum(int)':
0_0_27894804_9883.cpp:22:16: error: 'c' was not declared in this scope
         sum += c[x];
                ^
0_0_27894804_9883.cpp: In function 'void add(int, int)':
0_0_27894804_9883.cpp:32:9: error: 'c' was not declared in this scope
         c[x] += val;
         ^
0_0_27894804_9883.cpp: At global scope:
0_0_27894804_9883.cpp:39:6: error: 'maxn' was not declared in this scope
 } a1[maxn];
      ^
0_0_27894804_9883.cpp: In function 'int main()':
0_0_27894804_9883.cpp:50:16: error: 'c' was not declared in this scope
         memset(c,0,sizeof(c));
                ^
0_0_27894804_9883.cpp:51:16: error: 'val' was not declared in this scope
         memset(val,0,sizeof(val));
                ^
0_0_27894804_9883.cpp:54:27: error: 'a1' was not declared in this scope
             scanf("%d%d",&a1[i].x,&a1[i].y);
                           ^
0_0_27894804_9883.cpp:55:13: error: 'b' was not declared in this scope
             b[cnt++]=a1[i].x;
             ^
0_0_27894804_9883.cpp:58:14: error: 'b' was not declared in this scope
         sort(b,b+2*n);
              ^
0_0_27894804_9883.cpp:63:42: error: 'a1' was not declared in this scope
             int pos1=lower_bound(b,b+len,a1[i].x)-b+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-12-01 11:08:19, Gzip enabled