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_24614806_8104\Main.java:9: 错误: 非法字符: '#'
#include<iostream>
^
0_0_24614806_8104\Main.java:9: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_24614806_8104\Main.java:10: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_24614806_8104\Main.java:11: 错误: 非法字符: '#'
#define LL long long
^
0_0_24614806_8104\Main.java:12: 错误: 非法字符: '#'
#define inf 1<<30
^
0_0_24614806_8104\Main.java:14: 错误: 需要class, interface或enum
const int N=2005;
^
0_0_24614806_8104\Main.java:15: 错误: 需要class, interface或enum
int n;
^
0_0_24614806_8104\Main.java:16: 错误: 需要class, interface或enum
double y[N];
^
0_0_24614806_8104\Main.java:17: 错误: 需要class, interface或enum
struct LINE
^
0_0_24614806_8104\Main.java:20: 错误: 需要class, interface或enum
    double y_down,y_up;
    ^
0_0_24614806_8104\Main.java:21: 错误: 需要class, interface或enum
    int flag;
    ^
0_0_24614806_8104\Main.java:22: 错误: 需要class, interface或enum
}line[N];
^
0_0_24614806_8104\Main.java:24: 错误: 需要class, interface或enum
struct node
^
0_0_24614806_8104\Main.java:27: 错误: 需要class, interface或enum
    double x;
    ^
0_0_24614806_8104\Main.java:28: 错误: 需要class, interface或enum
    int cover;
    ^
0_0_24614806_8104\Main.java:29: 错误: 需要class, interface或enum
    bool flag;
    ^
0_0_24614806_8104\Main.java:30: 错误: 需要class, interface或enum
}node[N<<2];
^
0_0_24614806_8104\Main.java:32: 错误: 需要class, interface或enum
bool cmp(LINE a,LINE b)
^
0_0_24614806_8104\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_24614806_8104\Main.java:40: 错误: 需要class, interface或enum
    node[rt].r=y[r];
    ^
0_0_24614806_8104\Main.java:41: 错误: 需要class, interface或enum
    node[rt].x=-1;
    ^
0_0_24614806_8104\Main.java:42: 错误: 需要class, interface或enum
    node[rt].flag=false;
    ^
0_0_24614806_8104\Main.java:43: 错误: 需要class, interface或enum
    node[rt].cover=0;
    ^
0_0_24614806_8104\Main.java:44: 错误: 需要class, interface或enum
    if(l+1==r){
    ^
0_0_24614806_8104\Main.java:46: 错误: 需要class, interface或enum
        return;
        ^
0_0_24614806_8104\Main.java:47: 错误: 需要class, interface或enum
    }
    ^
0_0_24614806_8104\Main.java:49: 错误: 需要class, interface或enum
    build(rt<<1,l,mid);
    ^
0_0_24614806_8104\Main.java:50: 错误: 需要class, interface或enum
    build(rt<<1|1,mid,r);
    ^
0_0_24614806_8104\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_24614806_8104\Main.java:56: 错误: 需要class, interface或enum
    if(node[rt].flag){ 
    ^
0_0_24614806_8104\Main.java:59: 错误: 需要class, interface或enum
            double ans=(x-pre)*(node[rt].r-node[rt].l);
            ^
0_0_24614806_8104\Main.java:60: 错误: 需要class, interface或enum
            node[rt].x=x;
            ^
0_0_24614806_8104\Main.java:61: 错误: 需要class, interface或enum
            node[rt].cover+=flag;
            ^
0_0_24614806_8104\Main.java:62: 错误: 需要class, interface或enum
            return ans;
            ^
0_0_24614806_8104\Main.java:63: 错误: 需要class, interface或enum
        }else{
        ^
0_0_24614806_8104\Main.java:65: 错误: 需要class, interface或enum
            node[rt].cover+=flag;
            ^
0_0_24614806_8104\Main.java:66: 错误: 需要class, interface或enum
            return 0;
            ^
0_0_24614806_8104\Main.java:67: 错误: 需要class, interface或enum
        }
        ^
0_0_24614806_8104\Main.java:70: 错误: 需要class, interface或enum
    ans1=Insert_query(rt<<1,x,l,r,flag);
    ^
0_0_24614806_8104\Main.java:71: 错误: 需要class, interface或enum
    ans2=Insert_query(rt<<1|1,x,l,r,flag);
    ^
0_0_24614806_8104\Main.java:72: 错误: 需要class, interface或enum
    return ans1+ans2;
    ^
0_0_24614806_8104\Main.java:73: 错误: 需要class, interface或enum
}
^
0_0_24614806_8104\Main.java:78: 错误: 需要class, interface或enum
    double x1,x2,y1,y2;
    ^
0_0_24614806_8104\Main.java:79: 错误: 需要class, interface或enum
    scanf("%d",&t);
    ^
0_0_24614806_8104\Main.java:80: 错误: 需要class, interface或enum
    while(t--)
    ^
0_0_24614806_8104\Main.java:83: 错误: 需要class, interface或enum
        int cnt=-1;
        ^
0_0_24614806_8104\Main.java:84: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
        ^
0_0_24614806_8104\Main.java:84: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
                    ^
0_0_24614806_8104\Main.java:84: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
                        ^
0_0_24614806_8104\Main.java:86: 错误: 需要class, interface或enum
            y[++cnt]=y1;
            ^
0_0_24614806_8104\Main.java:87: 错误: 需要class, interface或enum
            line[cnt].x=x1;
            ^
0_0_24614806_8104\Main.java:88: 错误: 需要class, interface或enum
            line[cnt].y_down=y1;
            ^
0_0_24614806_8104\Main.java:89: 错误: 需要class, interface或enum
            line[cnt].y_up=y2;
            ^
0_0_24614806_8104\Main.java:90: 错误: 需要class, interface或enum
            line[cnt].flag=1;
            ^
0_0_24614806_8104\Main.java:92: 错误: 需要class, interface或enum
            y[++cnt]=y2;
            ^
0_0_24614806_8104\Main.java:93: 错误: 需要class, interface或enum
            line[cnt].x=x2;
            ^
0_0_24614806_8104\Main.java:94: 错误: 需要class, interface或enum
            line[cnt].y_down=y1;
            ^
0_0_24614806_8104\Main.java:95: 错误: 需要class, interface或enum
            line[cnt].y_up=y2;
            ^
0_0_24614806_8104\Main.java:96: 错误: 需要class, interface或enum
            line[cnt].flag=-1;
            ^
0_0_24614806_8104\Main.java:97: 错误: 需要class, interface或enum
        }
        ^
0_0_24614806_8104\Main.java:100: 错误: 需要class, interface或enum
        sort(line,line+cnt+1,cmp);
        ^
0_0_24614806_8104\Main.java:101: 错误: 需要class, interface或enum
        build(1,0,cnt);
        ^
0_0_24614806_8104\Main.java:102: 错误: 需要class, interface或enum
        double area=0;
        ^
0_0_24614806_8104\Main.java:103: 错误: 需要class, interface或enum
        for(int i=0;i<=cnt;i++){
        ^
0_0_24614806_8104\Main.java:103: 错误: 需要class, interface或enum
        for(int i=0;i<=cnt;i++){
                    ^
0_0_24614806_8104\Main.java:103: 错误: 需要class, interface或enum
        for(int i=0;i<=cnt;i++){
                           ^
0_0_24614806_8104\Main.java:105: 错误: 需要class, interface或enum
        }
        ^
0_0_24614806_8104\Main.java:107: 错误: 需要class, interface或enum
    }
    ^
0_0_24614806_8104\Main.java:109: 错误: 需要class, interface或enum
}
^
69 个错误


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-23 06:35:10, Gzip enabled