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_28850480_10681\Main.java:1: 错误: 需要class, interface或enum
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                   ^
0_0_28850480_10681\Main.java:1: 错误: 需要class, interface或enum
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                   ^
0_0_28850480_10681\Main.java:1: 错误: 非法的类型开始
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                                                      ^
0_0_28850480_10681\Main.java:1: 错误: 需要'('
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                                                             ^
0_0_28850480_10681\Main.java:1: 错误: 非法的表达式开始
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                                                                                                         ^
0_0_28850480_10681\Main.java:1: 错误: 非法的表达式开始
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                                                                                                                                                       ^
0_0_28850480_10681\Main.java:1: 错误: 需要 '.class'
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                                                                                                                                                           ^
0_0_28850480_10681\Main.java:1: 错误: 非法的表达式开始
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                                                                                                                                                                                        ^
0_0_28850480_10681\Main.java:1: 错误: 需要')'
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                                                                                                                                                                                                 ^
0_0_28850480_10681\Main.java:1: 错误: 不是语句
import java.util.*;<br>import java.math.BigInteger;<br><br>public class Main {<br>    public static void main(String[] args){<br>        Scanner sc=new Scanner(System.in);<br>        int T = sc.nextInt();<br>        for(int i=0;i<T;i++){<br>            BigInteger n=sc.nextBigInteger();<br>            System.out.println(fPow(n));<br>        }<br>    }<br>    public static BigInteger fPow(BigInteger n){<br>        BigInteger a=BigInteger.ONE;<br>        BigInteger b=BigInteger.valueOf(2);<br>        while(n.compareTo(BigInteger.ZERO)>0){<br>            if(n.mod(BigInteger.valueOf(2)).compareTo(BigInteger.ONE)==0){<br>                a=a.multiply(b);<br>            }<br>            b=b.multiply(b);<br>            n=n.divide(BigInteger.valueOf(2));<br>        }<br>        return a;<br>    }<br>}
                                                                                                                                                                                                                           ^
0_0_28850480_10681\Main.java:1: 错误: 需要>
import java.util.*;<br>import java.math.BigInteger;<br><br>public class 


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-12-03 01:37:32, Gzip enabled