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_11350620_17398\Main.java:8: 找不到符号
符号: 构造函数 BigInteger()
位置: 类 java.math.BigInteger
        BigInteger n = new BigInteger();
                       ^
0_0_11350620_17398\Main.java:12: 已在 main(java.lang.String[]) 中定义 n
            Integer n = scanner.nextBigInteger();
                    ^
0_0_11350620_17398\Main.java:12: 找不到符号
符号: 方法 nextBigInteger()
位置: 类 Scan
            Integer n = scanner.nextBigInteger();
                               ^
0_0_11350620_17398\Main.java:13: 无法将 Main 中的 solve(java.math.BigInteger,int) 应用于 (java.lang.Integer,int)
            s.append(solve(n,0).subtract(n)+"\n");
                     ^
0_0_11350620_17398\Main.java:19: 无法将 java.math.BigInteger 中的 mod(java.math.BigInteger) 应用于 (int)
        if(n.mod(2).equals(BigInteger.ZERO))return TWO.multiply(solve(n.divide(TWO),k+1)).add(n.add(BigInteger.ONE).multiply(BigInteger.ONE.shiftLeft(k)));
            ^
0_0_11350620_17398\Main.java:19: 无法从静态上下文中引用非静态 变量 TWO
        if(n.mod(2).equals(BigInteger.ZERO))return TWO.multiply(solve(n.divide(TWO),k+1)).add(n.add(BigInteger.ONE).multiply(BigInteger.ONE.shiftLeft(k)));
                                                                               ^
0_0_11350620_17398\Main.java:19: 无法从静态上下文中引用非静态 变量 TWO
        if(n.mod(2).equals(BigInteger.ZERO))return TWO.multiply(solve(n.divide(TWO),k+1)).add(n.add(BigInteger.ONE).multiply(BigInteger.ONE.shiftLeft(k)));
                                                   ^
0_0_11350620_17398\Main.java:20: 无法从静态上下文中引用非静态 变量 TWO
        else return solve(n.divide(TWO),k+1)+solve(n.divide(TWO).subtract(BigInteger.ONE),k+1);
                                   ^
0_0_11350620_17398\Main.java:20: 无法从静态上下文中引用非静态 变量 TWO
        else return solve(n.divide(TWO),k+1)+solve(n.divide(TWO).subtract(BigInteger.ONE),k+1);
                                                            ^
0_0_11350620_17398\Main.java:20: 运算符 + 不能应用于 java.math.BigInteger,java.math.BigInteger
        else return solve(n.divide(TWO),k+1)+solve(n.divide(TWO).subtract(BigInteger.ONE),k+1);
                                            ^
10 错误


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-01 01:27:57, Gzip enabled