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 个错误
|