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_35424600_16938.cpp: In function 'int find(int)':
0_0_35424600_16938.cpp:38:6: error: 'num' was not declared in this scope
   if(num[mid] >= x) best = mid , r = mid - 1;
      ^
0_0_35424600_16938.cpp: In function 'int main()':
0_0_35424600_16938.cpp:53:50: error: 'x' was not declared in this scope
    for(int j = 0 ; j <= 1 ; j++) scanf("%d%d" , &x[i][j] , &y[i][j]) , num[++len] = x[i][j] , num[++len] = y[i][j];
                                                  ^
0_0_35424600_16938.cpp:53:61: error: 'y' was not declared in this scope
    for(int j = 0 ; j <= 1 ; j++) scanf("%d%d" , &x[i][j] , &y[i][j]) , num[++len] = x[i][j] , num[++len] = y[i][j];
                                                             ^
0_0_35424600_16938.cpp:53:72: error: 'num' was not declared in this scope
    for(int j = 0 ; j <= 1 ; j++) scanf("%d%d" , &x[i][j] , &y[i][j]) , num[++len] = x[i][j] , num[++len] = y[i][j];
                                                                        ^
0_0_35424600_16938.cpp:56:8: error: 'num' was not declared in this scope
   sort(num + 1 , num + len + 1) ; len = unique(num + 1 , num + len + 1) - num - 1;
        ^
0_0_35424600_16938.cpp:60:17: error: 'x' was not declared in this scope
   int x1 = find(x[i][0]) , x2 = find(x[i][1]) , y1 = find(y[i][0]) , y2 = find(y[i][1]);
                 ^
0_0_35424600_16938.cpp:61:32: error: 'y1' was not declared in this scope
   b[++tot].x = x1 , b[tot].l = y1 , b[tot].r = y2 - 1 , b[tot].w = 1;
                                ^
0_0_35424600_16938.cpp:61:48: error: 'y2' was not declared in this scope
   b[++tot].x = x1 , b[tot].l = y1 , b[tot].r = y2 - 1 , b[tot].w = 1;
                                                ^
0_0_35424600_16938.cpp:62:16: error: 'x2' was not declared in this scope
   b[++tot].x = x2 , b[tot].l = y1 , b[tot].r = y2 - 1 , b[tot].w = -1;
                ^
0_0_35424600_16938.cpp:71:17: error: 'x' was not declared in this scope
   int x1 = find(x[i][0]) , x2 = find(x[i][1]) , y1 = find(y[i][0]) , y2 = find(y[i][1]);
                 ^
0_0_35424600_16938.cpp:72:16: error: 'y1' was not declared in this scope
   b[++tot].x = y1 , b[tot].l = x1 , b[tot].r = x2 - 1 , b[tot].w = 1;
                ^
0_0_35424600_16938.cpp:72:48: error: 'x2' was not declared in this scope
   b[++tot].x = y1 , b[tot].l = x1 , b[tot].r = x2 - 1 , b[tot].w = 1;
                                                ^
0_0_35424600_16938.cpp:73:16: error: 'y2' was not declared in this scope
   b[++tot].x = y2 , b[tot].l = x1 , b[tot].r = x2 - 1 , b[tot].w = -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-22 15:09:24, Gzip enabled