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_26026404_29064.cpp:1:1: error: 'import' does not name a type
 import java.util.*;
 ^
0_0_26026404_29064.cpp:2:1: error: 'import' does not name a type
 import java.math.*;
 ^
0_0_26026404_29064.cpp:4:10: error: expected ':' before 'static'
  public  static BigInteger qk_pow(BigInteger a,BigInteger b)
          ^
0_0_26026404_29064.cpp:4:17: error: 'BigInteger' does not name a type
  public  static BigInteger qk_pow(BigInteger a,BigInteger b)
                 ^
0_0_26026404_29064.cpp:16:9: error: expected ':' before 'static'
  public static void main(String[] args)
         ^
0_0_26026404_29064.cpp:16:26: error: 'String' has not been declared
  public static void main(String[] args)
                          ^
0_0_26026404_29064.cpp:16:35: error: expected ',' or '...' before 'args'
  public static void main(String[] args)
                                   ^
0_0_26026404_29064.cpp:29:1: error: expected ';' after class definition
 }
 ^
0_0_26026404_29064.cpp: In static member function 'static void Main::main(int*)':
0_0_26026404_29064.cpp:18:3: error: 'Scanner' was not declared in this scope
   Scanner in = new Scanner(System.in);
   ^
0_0_26026404_29064.cpp:19:11: error: 'in' was not declared in this scope
   int T = in.nextInt();
           ^
0_0_26026404_29064.cpp:20:3: error: 'BigInteger' was not declared in this scope
   BigInteger n = new BigInteger("0"),ans = new BigInteger("0");
   ^
0_0_26026404_29064.cpp:21:14: error: expected ';' before 'two'
   BigInteger two = new BigInteger("2");
              ^
0_0_26026404_29064.cpp:23:4: error: 'n' was not declared in this scope
    n = in.nextBigInteger();
    ^
0_0_26026404_29064.cpp:24:4: error: 'ans' was not declared in this scope
    ans = qk_pow(two,n);
    ^
0_0_26026404_29064.cpp:24:17: error: 'two' was not declared in this scope
    ans = qk_pow(two,n);
                 ^
0_0_26026404_29064.cpp:24:22: error: 'qk_pow' was not declared in this scope
    ans = qk_pow(two,n);
                      ^
0_0_26026404_29064.cpp:25:4: error: 'System' was not declared in this scope
    System.out.println(ans);
    ^


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-25 22:48:36, Gzip enabled