Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_783_1563_7085.cpp:1:1: error: 'import' does not name a type
 import java.awt.*;
 ^
1_783_1563_7085.cpp:2:1: error: 'import' does not name a type
 import java.util.*;
 ^
1_783_1563_7085.cpp:3:1: error: 'import' does not name a type
 import java.lang.*;
 ^
1_783_1563_7085.cpp:4:1: error: 'import' does not name a type
 import java.math.*;
 ^
1_783_1563_7085.cpp:7:9: error: expected ':' before 'static'
  public static void main(String[] args) {
         ^
1_783_1563_7085.cpp:7:26: error: 'String' has not been declared
  public static void main(String[] args) {
                          ^
1_783_1563_7085.cpp:7:35: error: expected ',' or '...' before 'args'
  public static void main(String[] args) {
                                   ^
1_783_1563_7085.cpp:40:9: error: expected ':' before 'static'
  public static BigInteger getsqrt(BigInteger a)
         ^
1_783_1563_7085.cpp:40:16: error: 'BigInteger' does not name a type
  public static BigInteger getsqrt(BigInteger a)
                ^
1_783_1563_7085.cpp:51:1: error: expected ';' after class definition
 }
 ^
1_783_1563_7085.cpp: In static member function 'static void LittleBoxes::main(int*)':
1_783_1563_7085.cpp:9:3: error: 'Scanner' was not declared in this scope
   Scanner cin=new Scanner(System.in);
   ^
1_783_1563_7085.cpp:10:3: error: 'BigInteger' was not declared in this scope
   BigInteger a;
   ^
1_783_1563_7085.cpp:11:9: error: 'cin' was not declared in this scope
   int T=cin.nextInt();
         ^
1_783_1563_7085.cpp:13:4: error: 'a' was not declared in this scope
    a=cin.nextBigInteger();
    ^
1_783_1563_7085.cpp:15:46: error: 'System' was not declared in this scope
    if (a.compareTo(BigInteger.valueOf(4))<=0)System.out.println(4);
                                              ^
1_783_1563_7085.cpp:20:17: error: expected ';' before 'c'
      BigInteger c=a.multiply(a).
                 ^
1_783_1563_7085.cpp:24:10: error: 'c' was not declared in this scope
      if (c.mod(BigInteger.valueOf(16))==BigInteger.ZERO) {
          ^
1_783_1563_7085.cpp:25:18: error: expected ';' before 'g'
       BigInteger g=getsqrt(c);
                  ^
1_783_1563_7085.cpp:26:7: error: 'g' was not declared in this scope
       g=g.multiply(g);
       ^
1_783_1563_7085.cpp:28:8: error: 'System' was not declared in this scope
        System.out.println(a);
        ^
1_783_1563_7085.cpp:36:13: error: 'System' was not declared in this scope
     if (tmp)System.out.println(-1);
             ^


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-05-20 06:08:26, Gzip enabled