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_36829088_26230.cpp:2:8: error: 'maxn' was not declared in this scope
 int fa[maxn];
        ^
0_0_36829088_26230.cpp:1:13: error: 'pair' does not name a type
 #define PII pair<int, int>
             ^
0_0_36829088_26230.cpp:4:1: note: in expansion of macro 'PII'
 PII save[2007];
 ^
0_0_36829088_26230.cpp:10:5: error: 'maxn' was not declared in this scope
 } a[maxn], b[maxn];
     ^
0_0_36829088_26230.cpp:10:14: error: 'maxn' was not declared in this scope
 } a[maxn], b[maxn];
              ^
0_0_36829088_26230.cpp: In function 'int find(int)':
0_0_36829088_26230.cpp:12:14: error: 'fa' was not declared in this scope
     if (x == fa[x])
              ^
0_0_36829088_26230.cpp: In function 'bool Union(int, int)':
0_0_36829088_26230.cpp:21:5: error: 'fa' was not declared in this scope
     fa[fax] = fay;
     ^
0_0_36829088_26230.cpp: At global scope:
0_0_36829088_26230.cpp:1:13: error: 'pair' does not name a type
 #define PII pair<int, int>
             ^
0_0_36829088_26230.cpp:24:1: note: in expansion of macro 'PII'
 PII get(int x) {
 ^
0_0_36829088_26230.cpp: In function 'int main()':
0_0_36829088_26230.cpp:41:13: error: 'read' was not declared in this scope
     int _ = read;
             ^
0_0_36829088_26230.cpp:46:13: error: 'b' was not declared in this scope
             b[i].u = a[i].u = read;
             ^
0_0_36829088_26230.cpp:46:22: error: 'a' was not declared in this scope
             b[i].u = a[i].u = read;
                      ^
0_0_36829088_26230.cpp:51:14: error: 'a' was not declared in this scope
         sort(a + 1, a + 1 + m);
              ^
0_0_36829088_26230.cpp:51:30: error: 'sort' was not declared in this scope
         sort(a + 1, a + 1 + m);
                              ^
0_0_36829088_26230.cpp:52:38: error: 'fa' was not declared in this scope
         for (int i = 1; i <= n; i++) fa[i] = i;
                                      ^
0_0_36829088_26230.cpp:56:14: error: 'b' was not declared in this scope
         sort(b + 1, b + 1 + m);
              ^
0_0_36829088_26230.cpp:57:38: error: 'fa' was not declared in this scope
         for (int i = 1; i <= n; i++) fa[i] = i;
                                      ^
0_0_36829088_26230.cpp:62:13: error: 'save' was not declared in this scope
             save[1000 + i] = get(i);
             ^
0_0_36829088_26230.cpp:62:35: error: 'get' was not declared in this scope
             save[1000 + i] = get(i);
                                   ^
0_0_36829088_26230.cpp:69:21: error: 'save' was not declared in this scope
                 if (save[j + 1000].second <= i) {
                     ^
0_0_36829088_26230.cpp:70:64: error: 'printf' was not declared in this scope
                     printf("%d\n", save[1000 + j].first - i * j);
                                                                ^
0_0_36829088_26230.cpp:75:33: error: 'puts' was not declared in this scope
             if (!flag) puts("-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 21:32:38, Gzip enabled