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_39078374_24816\Main.java:2: 错误: 需要class, interface或enum
BigInteger a=new BigInteger(“123”);  
^
0_0_39078374_24816\Main.java:2: 错误: 非法字符: '\u201c'
BigInteger a=new BigInteger(“123”);  
                            ^
0_0_39078374_24816\Main.java:2: 错误: 非法字符: '\u201d'
BigInteger a=new BigInteger(“123”);  
                                ^
0_0_39078374_24816\Main.java:4: 错误: 需要class, interface或enum
Scanner sc = new Scanner(System.in);
^
0_0_39078374_24816\Main.java:5: 错误: 需要class, interface或enum
BigInteger a = sc.nextBigInteger();
^
0_0_39078374_24816\Main.java:6: 错误: 需要class, interface或enum
a. add(b);    //a,b均为BigInteger类型,加法
^
0_0_39078374_24816\Main.java:7: 错误: 需要class, interface或enum
a.subtract(b);   //减 法
^
0_0_39078374_24816\Main.java:8: 错误: 需要class, interface或enum
a.divide(b);  //除法
^
0_0_39078374_24816\Main.java:9: 错误: 需要class, interface或enum
a.multiply(b);    //乘法
^
0_0_39078374_24816\Main.java:10: 错误: 需要class, interface或enum
a.equals(b);  //如果a、b相等返回true否则返回false
^
0_0_39078374_24816\Main.java:11: 错误: 需要class, interface或enum
a.compareTo(b);  //a小于b返回-1,等于返回0,大于返回1
^
0_0_39078374_24816\Main.java:12: 错误: 需要class, interface或enum
a.mod(b);  //求余
^
0_0_39078374_24816\Main.java:13: 错误: 需要class, interface或enum
a.gcd(b);  //求最大公约数
^
0_0_39078374_24816\Main.java:15: 错误: 需要class, interface或enum
a.toString().length();   //a的类型为BigInteger
^
0_0_39078374_24816\Main.java:16: 错误: 需要class, interface或enum
Scanner sc = new Scanner(System.in); //相当于C++中的cin,只不过这个cin需要自己创建
^
0_0_39078374_24816\Main.java:17: 错误: 需要class, interface或enum
    while (sc.hasNext()){  //等同于!=EOF
    ^
0_0_39078374_24816\Main.java:19: 错误: 需要class, interface或enum
        a = sc.nextBigInteger();   //读入一个BigInteger;
        ^
0_0_39078374_24816\Main.java:20: 错误: 需要class, interface或enum
        System.out.println(a);   //输出a并换行
        ^
0_0_39078374_24816\Main.java:21: 错误: 需要class, interface或enum
    }
    ^
0_0_39078374_24816\Main.java:23: 错误: 需要class, interface或enum
    int T = sc.nextInt();
    ^
0_0_39078374_24816\Main.java:24: 错误: 需要class, interface或enum
    while (T-- > 0) {
    ^
0_0_39078374_24816\Main.java:26: 错误: 需要class, interface或enum
    }
    ^
22 个错误


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-23 03:35:22, Gzip enabled