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_25545770_23148\Main.java:4: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_25545770_23148\Main.java:4: 错误: 需要class, interface或enum
#include<stdio.h>
        ^
0_0_25545770_23148\Main.java:9: 错误: 非法字符: '#'
#include<string.h>
^
0_0_25545770_23148\Main.java:14: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_25545770_23148\Main.java:24: 错误: 需要class, interface或enum
typedef struct{
^
0_0_25545770_23148\Main.java:34: 错误: 需要class, interface或enum
}str;
^
0_0_25545770_23148\Main.java:39: 错误: 需要class, interface或enum
str s[110];
^
0_0_25545770_23148\Main.java:44: 错误: 需要class, interface或enum
int cmp(str a, str b) //排序
^
0_0_25545770_23148\Main.java:59: 错误: 需要class, interface或enum
    return a.en < b.en;
    ^
0_0_25545770_23148\Main.java:64: 错误: 需要class, interface或enum
}
^
0_0_25545770_23148\Main.java:84: 错误: 需要class, interface或enum
    while(scanf("%d", &n), n){
    ^
0_0_25545770_23148\Main.java:89: 错误: 需要class, interface或enum
        for(i = 0; i < n; i ++)
                   ^
0_0_25545770_23148\Main.java:89: 错误: 需要class, interface或enum
        for(i = 0; i < n; i ++)
                          ^
0_0_25545770_23148\Main.java:99: 错误: 需要class, interface或enum
        sort(s, s+n, cmp); //排序
        ^
0_0_25545770_23148\Main.java:104: 错误: 需要class, interface或enum
        int ans = 1;
        ^
0_0_25545770_23148\Main.java:109: 错误: 需要class, interface或enum
        int en = s[0].en; //初始结束时间,仔细想一下为什么从第一个开始,(因为如果从其他的开始,很明显的第一个符合条件)
        ^
0_0_25545770_23148\Main.java:114: 错误: 需要class, interface或enum
          for(i = 1; i < n; i ++){
          ^
0_0_25545770_23148\Main.java:114: 错误: 需要class, interface或enum
          for(i = 1; i < n; i ++){
                     ^
0_0_25545770_23148\Main.java:114: 错误: 需要class, interface或enum
          for(i = 1; i < n; i ++){
                            ^
0_0_25545770_23148\Main.java:129: 错误: 需要class, interface或enum
                en = s[i].en;  //更新结束时间
                ^
0_0_25545770_23148\Main.java:134: 错误: 需要class, interface或enum
            }
            ^
0_0_25545770_23148\Main.java:149: 错误: 需要class, interface或enum
    }
    ^
22 个错误


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-18 04:49:03, Gzip enabled