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