Banner Home Page DIY Contests Problems Ranklist Status Statistics
欢迎大家继续来水~

View Compilation Error

2_16309_1139280_17586\Main.java:7: class, interface, or enum expected
     public static void main(String args[]) {
                   ^
2_16309_1139280_17586\Main.java:9: class, interface, or enum expected
         int n;
         ^
2_16309_1139280_17586\Main.java:10: class, interface, or enum expected
         BigInteger a,b,c,d;
         ^
2_16309_1139280_17586\Main.java:11: class, interface, or enum expected
         while (cin.hasNext()) {
         ^
2_16309_1139280_17586\Main.java:13: class, interface, or enum expected
             b = BigInteger.ONE;
             ^
2_16309_1139280_17586\Main.java:14: class, interface, or enum expected
             for( int i = 1; i <= n; i++)
             ^
2_16309_1139280_17586\Main.java:14: class, interface, or enum expected
             for( int i = 1; i <= n; i++)
                             ^
2_16309_1139280_17586\Main.java:14: class, interface, or enum expected
             for( int i = 1; i <= n; i++)
                                     ^
2_16309_1139280_17586\Main.java:17: class, interface, or enum expected
            	 b = b.multiply(a);
            	 ^
2_16309_1139280_17586\Main.java:19: class, interface, or enum expected
             }
             ^
2_16309_1139280_17586\Main.java:21: class, interface, or enum expected
             d = BigInteger.ONE;
             ^
2_16309_1139280_17586\Main.java:22: class, interface, or enum expected
             for(int i = 1; i <= n; i++)
             ^
2_16309_1139280_17586\Main.java:22: class, interface, or enum expected
             for(int i = 1; i <= n; i++)
                            ^
2_16309_1139280_17586\Main.java:22: class, interface, or enum expected
             for(int i = 1; i <= n; i++)
                                    ^
2_16309_1139280_17586\Main.java:25: class, interface, or enum expected
            	d = d.multiply(c);
            	^
2_16309_1139280_17586\Main.java:26: class, interface, or enum expected
             }
             ^
2_16309_1139280_17586\Main.java:28: class, interface, or enum expected
             int flag = (d.divide( BigInteger.valueOf(1000000000))).intValue();
             ^
2_16309_1139280_17586\Main.java:29: class, interface, or enum expected
             int ans = (d.mod(BigInteger.valueOf(1000000000))).intValue();
             ^
2_16309_1139280_17586\Main.java:30: class, interface, or enum expected
             if(flag > 0){
             ^
2_16309_1139280_17586\Main.java:32: class, interface, or enum expected
            	System.out.println(df.format(ans));
            	^
2_16309_1139280_17586\Main.java:33: class, interface, or enum expected
             }
             ^
2_16309_1139280_17586\Main.java:36: class, interface, or enum expected
     }
     ^
22 errors