0_0_22404259_22711.cpp: In function 'long long int dis(int, int, int)':
0_0_22404259_22711.cpp:4:13: error: 'tree' was not declared in this scope
if (x < tree[p].Min[0]) ans += sqr (tree[p].Min[0]-x);
^
0_0_22404259_22711.cpp:4:57: error: 'sqr' was not declared in this scope
if (x < tree[p].Min[0]) ans += sqr (tree[p].Min[0]-x);
^
0_0_22404259_22711.cpp:5:13: error: 'tree' was not declared in this scope
if (x > tree[p].Max[0]) ans += sqr (x-tree[p].Max[0]);
^
0_0_22404259_22711.cpp:5:57: error: 'sqr' was not declared in this scope
if (x > tree[p].Max[0]) ans += sqr (x-tree[p].Max[0]);
^
0_0_22404259_22711.cpp:6:13: error: 'tree' was not declared in this scope
if (y < tree[p].Min[1]) ans += sqr (tree[p].Min[1]-y);
^
0_0_22404259_22711.cpp:6:57: error: 'sqr' was not declared in this scope
if (y < tree[p].Min[1]) ans += sqr (tree[p].Min[1]-y);
^
0_0_22404259_22711.cpp:7:13: error: 'tree' was not declared in this scope
if (y > tree[p].Max[1]) ans += sqr (y-tree[p].Max[1]);
^
0_0_22404259_22711.cpp:7:57: error: 'sqr' was not declared in this scope
if (y > tree[p].Max[1]) ans += sqr (y-tree[p].Max[1]);
^
0_0_22404259_22711.cpp: In function 'long long int distance(int, long long int, long long int)':
0_0_22404259_22711.cpp:12:20: error: 'tree' was not declared in this scope
long long xx = tree[i].d[0]-x, yy = tree[i].d[1]-y;
^
0_0_22404259_22711.cpp:13:19: error: 'yy' was not declared in this scope
return (xx*xx+yy*yy);
^
0_0_22404259_22711.cpp: In function 'void query(int)':
0_0_22404259_22711.cpp:17:20: error: 'INF' was not declared in this scope
long long dl = INF, dr = INF, d0;
^
0_0_22404259_22711.cpp:18:5: error: 'd0' was not declared in this scope
d0 = distance (p, x, y);//初始答案
^
0_0_22404259_22711.cpp:18:23: error: 'x' was not declared in this scope
d0 = distance (p, x, y);//初始答案
^
0_0_22404259_22711.cpp:18:26: error: 'y' was not declared in this scope
d0 = distance (p, x, y);//初始答案
^
0_0_22404259_22711.cpp:19:9: error: 'tree' was not declared in this scope
if (tree[p].d[0] == x && tree[p].d[1] == y) d0 = INF;//重合
^
0_0_22404259_22711.cpp:20:14: error: 'ans' was not declared in this scope
get_min (ans, d0);
^
0_0_22404259_22711.cpp:20:21: error: 'get_min' was not declared in this scope
get_min (ans, d0);
^
0_0_22404259_22711.cpp:21:9: error: 'tree' was not declared in this scope
if (tree[p].l) dl = dis (tree[p].l, x, y);
^
0_0_22404259_22711.cpp:22:9: error: 'tree' was not declared in this scope
if (tree[p].r) dr = dis (tree[p].r, x, y);
^
0_0_22404259_22711.cpp:22:20: error: 'dr' was not declared in this scope
if (tree[p].r) dr = dis (tree[p].r, x, y);
^
0_0_22404259_22711.cpp:23:14: error: 'dr' was not declared in this scope
if (dl < dr) {
^
0_0_22404259_22711.cpp:24:30: error: 'tree' was not declared in this scope
if (dl < ans) query (tree[p].l);
^
0_0_22404259_22711.cpp:25:30: error: 'tree' was not declared in this scope
if (dr < ans) query (tree[p].r);
^
0_0_22404259_22711.cpp:28:30: error: 'tree' was not declared in this scope
if (dr < ans) query (tree[p].r);
^
0_0_22404259_22711.cpp:29:30: error: 'tree' was not declared in this scope
if (dl < ans) query (tree[p].l);
^
0_0_22404259_22711.cpp: At global scope:
0_0_22404259_22711.cpp:33:15: error: 'maxn' was not declared in this scope
long long res[maxn];
^
0_0_22404259_22711.cpp: In function 'int main()':
0_0_22404259_22711.cpp:37:12: error: 'cin' was not declared in this scope
int t; cin >> t;
^
0_0_22404259_22711.cpp:39:15: error: 'n' was not declared in this scope
scan (n);
^
0_0_22404259_22711.cpp:39:16: error: 'scan' was not declared in this scope
scan (n);
^
0_0_22404259_22711.cpp:41:19: error: 'tree' was not declared in this scope
scan (tree[i].d[0]);
^
0_0_22404259_22711.cpp:45:9: error: 'root' was not declared in this scope
root = build_tree (1, n, 0);
^
0_0_22404259_22711.cpp:45:35: error: 'build_tree' was not declared in this scope
root = build_tree (1, n, 0);
^
0_0_22404259_22711.cpp:47:13: error: 'ans' was not declared in this scope
ans = INF;
^
0_0_22404259_22711.cpp:47:19: error: 'INF' was not declared in this scope
ans = INF;
^
0_0_22404259_22711.cpp:48:13: error: 'x' was not declared in this scope
x = tree[i].d[0], y = tree[i].d[1];
^
0_0_22404259_22711.cpp:48:17: error: 'tree' was not declared in this scope
x = tree[i].d[0], y = tree[i].d[1];
^
0_0_22404259_22711.cpp:48:31: error: 'y' was not declared in this scope
x = tree[i].d[0], y = tree[i].d[1];
^
0_0_22404259_22711.cpp:50:13: error: 'res' was not declared in this scope
res[tree[i].id] = ans;
^
0_0_22404259_22711.cpp:52:56: error: 'res' was not declared in this scope
for (int i = 1; i <= n; i++) printf ("%lld\n", res[i]);
^
0_0_22404259_22711.cpp:52:62: error: 'printf' was not declared in this scope
for (int i = 1; i <= n; i++) printf ("%lld\n", res[i]);
^
|