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_27506117_17582\Main.java:13: 错误: 不兼容的类型: int[]无法转换为int
        int fib = new int[41];
                  ^
0_0_27506117_17582\Main.java:14: 错误: 需要数组, 但找到int
        fib[1] = 1;
           ^
0_0_27506117_17582\Main.java:15: 错误: 需要数组, 但找到int
        fib[2] = 1;
           ^
0_0_27506117_17582\Main.java:17: 错误: 需要数组, 但找到int
            fib[i] = fib[i-1]+fib[i-2];
               ^
0_0_27506117_17582\Main.java:17: 错误: 需要数组, 但找到int
            fib[i] = fib[i-1]+fib[i-2];
                        ^
0_0_27506117_17582\Main.java:17: 错误: 需要数组, 但找到int
            fib[i] = fib[i-1]+fib[i-2];
                                 ^
0_0_27506117_17582\Main.java:21: 错误: 需要数组, 但找到int
            System.out.println(fib[sc.nextInt()]);
                                  ^
7 个错误


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-16 14:26:21, Gzip enabled