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_14854205_19140\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_14854205_19140\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_14854205_19140\Main.java:2: 错误: 非法字符: '#'
#include <string.h>
^
0_0_14854205_19140\Main.java:3: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_14854205_19140\Main.java:4: 错误: 非法字符: '#'
#include <time.h>
^
0_0_14854205_19140\Main.java:5: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_14854205_19140\Main.java:126: 错误: 非法字符: '#'
#define inf (1LL << 62)
^
0_0_14854205_19140\Main.java:127: 错误: 非法字符: '#'
#define rep(i,l,r) for (int i = l;i <= r;i ++)
^
0_0_14854205_19140\Main.java:127: 错误: 需要class, interface或enum
#define rep(i,l,r) for (int i = l;i <= r;i ++)
                                  ^
0_0_14854205_19140\Main.java:127: 错误: 需要class, interface或enum
#define rep(i,l,r) for (int i = l;i <= r;i ++)
                                         ^
0_0_14854205_19140\Main.java:129: 错误: 需要class, interface或enum
const int N = 100005;
^
0_0_14854205_19140\Main.java:132: 错误: 需要class, interface或enum
bool d[N];
^
0_0_14854205_19140\Main.java:133: 错误: 需要class, interface或enum
int n;
^
0_0_14854205_19140\Main.java:134: 错误: 需要class, interface或enum
__int64 res;
^
0_0_14854205_19140\Main.java:136: 错误: 需要class, interface或enum
struct nodes{
^
0_0_14854205_19140\Main.java:138: 错误: 需要class, interface或enum
}node[N],p[N];
^
0_0_14854205_19140\Main.java:140: 错误: 需要class, interface或enum
bool cmpx (nodes a,nodes b){
^
0_0_14854205_19140\Main.java:142: 错误: 需要class, interface或enum
}
^
0_0_14854205_19140\Main.java:146: 错误: 需要class, interface或enum
}
^
0_0_14854205_19140\Main.java:150: 错误: 需要class, interface或enum
}
^
0_0_14854205_19140\Main.java:154: 错误: 需要class, interface或enum
    int minx = min_element(p + l, p + r + 1, cmpx)->x;//STL
    ^
0_0_14854205_19140\Main.java:155: 错误: 需要class, interface或enum
    int maxx = max_element(p + l, p + r + 1, cmpx)->x;
    ^
0_0_14854205_19140\Main.java:156: 错误: 需要class, interface或enum
    int miny = min_element(p + l, p + r + 1, cmpy)->y;//STL
    ^
0_0_14854205_19140\Main.java:157: 错误: 需要class, interface或enum
    int maxy = max_element(p + l, p + r + 1, cmpy)->y;
    ^
0_0_14854205_19140\Main.java:158: 错误: 需要class, interface或enum
    int mid = (l + r) >> 1;
    ^
0_0_14854205_19140\Main.java:159: 错误: 需要class, interface或enum
    d[mid] = (maxx - minx > maxy - miny);
    ^
0_0_14854205_19140\Main.java:160: 错误: 需要class, interface或enum
    sort(p + l, p + r + 1, d[mid] ? cmpx : cmpy);
    ^
0_0_14854205_19140\Main.java:162: 错误: 需要class, interface或enum
    build(l, mid - 1, p);
    ^
0_0_14854205_19140\Main.java:163: 错误: 需要class, interface或enum
    build(mid + 1, r, p);
    ^
0_0_14854205_19140\Main.java:164: 错误: 需要class, interface或enum
}
^
0_0_14854205_19140\Main.java:168: 错误: 需要class, interface或enum
void find (int l,int r,nodes a,nodes p[]){//a为询问点
^
0_0_14854205_19140\Main.java:170: 错误: 需要class, interface或enum
    int mid = (l + r) >> 1;
    ^
0_0_14854205_19140\Main.java:171: 错误: 需要class, interface或enum
    __int64 dist = dis(a, p[mid]);
    ^
0_0_14854205_19140\Main.java:172: 错误: 需要class, interface或enum
    __int64 d1 = d[mid] ? (a.x - p[mid].x) : (a.y - p[mid].y);
    ^
0_0_14854205_19140\Main.java:173: 错误: 需要class, interface或enum
    if (dist > 0)
    ^
0_0_14854205_19140\Main.java:179: 错误: 需要class, interface或enum
            index = mid;
            ^
0_0_14854205_19140\Main.java:180: 错误: 需要class, interface或enum
        }
        ^
0_0_14854205_19140\Main.java:184: 错误: 需要class, interface或enum
    int l2 = mid + 1,r2 = r;
    ^
0_0_14854205_19140\Main.java:185: 错误: 需要class, interface或enum
    if (d1 > 0) {//交换左右区间
    ^
0_0_14854205_19140\Main.java:187: 错误: 需要class, interface或enum
        swap(r1, r2);
        ^
0_0_14854205_19140\Main.java:188: 错误: 需要class, interface或enum
    }
    ^
0_0_14854205_19140\Main.java:190: 错误: 需要class, interface或enum
    if (d1 * d1 < res) find(l2, r2, a,p);
    ^
0_0_14854205_19140\Main.java:191: 错误: 需要class, interface或enum
}
^
0_0_14854205_19140\Main.java:196: 错误: 需要class, interface或enum
    scanf("%d", &T);
    ^
0_0_14854205_19140\Main.java:197: 错误: 需要class, interface或enum
    while (T-- && scanf("%d", &n)) {
    ^
0_0_14854205_19140\Main.java:199: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
                        ^
0_0_14854205_19140\Main.java:199: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
                               ^
0_0_14854205_19140\Main.java:202: 错误: 需要class, interface或enum
            p[i] = node[i];
            ^
0_0_14854205_19140\Main.java:203: 错误: 需要class, interface或enum
        }
        ^
0_0_14854205_19140\Main.java:206: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
        ^
0_0_14854205_19140\Main.java:206: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
                        ^
0_0_14854205_19140\Main.java:206: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
                               ^
0_0_14854205_19140\Main.java:208: 错误: 需要class, interface或enum
            index = 0;
            ^
0_0_14854205_19140\Main.java:209: 错误: 需要class, interface或enum
            find(0, n - 1, node[i], p);
            ^
0_0_14854205_19140\Main.java:210: 错误: 需要class, interface或enum
            printf("%I64d\n", dis(p[index], node[i]));
            ^
0_0_14854205_19140\Main.java:211: 错误: 需要class, interface或enum
        }
        ^
0_0_14854205_19140\Main.java:214: 错误: 需要class, interface或enum
}
^
57 个错误


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-25 16:51:21, Gzip enabled