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_20440822_6557\Main.java:22: 错误: 无法从静态上下文中引用非静态 方法 get(int)
        Interval cur = List.get(0);
                           ^
  其中, E是类型变量:
    E扩展已在接口 List中声明的Object
0_0_20440822_6557\Main.java:22: 错误: 不兼容的类型: Object无法转换为Interval
        Interval cur = List.get(0);
                               ^
0_0_20440822_6557\Main.java:23: 错误: 找不到符号
        ret[cur.end] = 1;
        ^
  符号:   变量 ret
  位置: 类 Main
0_0_20440822_6557\Main.java:24: 错误: 找不到符号
        int[] ret = new ret[s.get(s.size() - 1).end + 1];
                        ^
  符号:   类 ret
  位置: 类 Main
0_0_20440822_6557\Main.java:26: 错误: 已在方法 helper(List<Interval>)中定义了变量 cur
            Interval cur = List.get(i);
                     ^
0_0_20440822_6557\Main.java:26: 错误: 无法从静态上下文中引用非静态 方法 get(int)
            Interval cur = List.get(i);
                               ^
  其中, E是类型变量:
    E扩展已在接口 List中声明的Object
0_0_20440822_6557\Main.java:26: 错误: 不兼容的类型: Object无法转换为Interval
            Interval cur = List.get(i);
                                   ^
0_0_20440822_6557\Main.java:28: 错误: 已在方法 helper(List<Interval>)中定义了变量 i
            for(int i = 0; i <= cur.end; i++) {
                    ^
8 个错误


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-22 19:00:29, Gzip enabled