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_11358337_13971\Main.java:30: 无法从静态上下文中引用非静态 变量 c
				c[0] = new BigDecimal(1);
				^
0_0_11358337_13971\Main.java:33: 无法从静态上下文中引用非静态 变量 a
					a[i] = in.nextBigDecimal();
					^
0_0_11358337_13971\Main.java:37: 无法从静态上下文中引用非静态 变量 c
						c[i] = c[i-1].multiply(new BigDecimal(n-i)).divide(new BigDecimal(i));
						^
0_0_11358337_13971\Main.java:37: 无法从静态上下文中引用非静态 变量 c
						c[i] = c[i-1].multiply(new BigDecimal(n-i)).divide(new BigDecimal(i));
						       ^
0_0_11358337_13971\Main.java:47: 无法从静态上下文中引用非静态 变量 c
						c[i] = c[i].multiply(new BigDecimal(-1));
						^
0_0_11358337_13971\Main.java:47: 无法从静态上下文中引用非静态 变量 c
						c[i] = c[i].multiply(new BigDecimal(-1));
						       ^
0_0_11358337_13971\Main.java:48: 无法从静态上下文中引用非静态 变量 c
					ans = ans.add(a[i].multiply(c[i]));
					                            ^
0_0_11358337_13971\Main.java:48: 无法从静态上下文中引用非静态 变量 a
					ans = ans.add(a[i].multiply(c[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-15 07:45:30, Gzip enabled