Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_783_1579_19135.cpp:1:1: error: 'import' does not name a type
 import java.awt.*;
 ^
1_783_1579_19135.cpp:2:1: error: 'import' does not name a type
 import java.util.*;
 ^
1_783_1579_19135.cpp:3:1: error: 'import' does not name a type
 import java.lang.*;
 ^
1_783_1579_19135.cpp:4:1: error: 'import' does not name a type
 import java.math.*;
 ^
1_783_1579_19135.cpp:7:12: error: expected ':' before 'static'
     public static void main(String[] args) {
            ^
1_783_1579_19135.cpp:7:29: error: 'String' has not been declared
     public static void main(String[] args) {
                             ^
1_783_1579_19135.cpp:7:38: error: expected ',' or '...' before 'args'
     public static void main(String[] args) {
                                      ^
1_783_1579_19135.cpp:40:12: error: expected ':' before 'static'
     public static BigInteger getsqrt(BigInteger a)
            ^
1_783_1579_19135.cpp:40:19: error: 'BigInteger' does not name a type
     public static BigInteger getsqrt(BigInteger a)
                   ^
1_783_1579_19135.cpp:51:1: error: expected ';' after class definition
 }
 ^
1_783_1579_19135.cpp: In static member function 'static void Main::main(int*)':
1_783_1579_19135.cpp:9:9: error: 'Scanner' was not declared in this scope
         Scanner cin=new Scanner(System.in);
         ^
1_783_1579_19135.cpp:10:9: error: 'BigInteger' was not declared in this scope
         BigInteger a;
         ^
1_783_1579_19135.cpp:11:15: error: 'cin' was not declared in this scope
         int T=cin.nextInt();
               ^
1_783_1579_19135.cpp:13:13: error: 'a' was not declared in this scope
             a=cin.nextBigInteger();
             ^
1_783_1579_19135.cpp:15:55: error: 'System' was not declared in this scope
             if (a.compareTo(BigInteger.valueOf(4))<=0)System.out.println(4);
                                                       ^
1_783_1579_19135.cpp:20:32: error: expected ';' before 'c'
                     BigInteger c=a.multiply(a).
                                ^
1_783_1579_19135.cpp:24:25: error: 'c' was not declared in this scope
                     if (c.mod(BigInteger.valueOf(16))==BigInteger.ZERO) {
                         ^
1_783_1579_19135.cpp:25:36: error: expected ';' before 'g'
                         BigInteger g=getsqrt(c);
                                    ^
1_783_1579_19135.cpp:26:25: error: 'g' was not declared in this scope
                         g=g.multiply(g);
                         ^
1_783_1579_19135.cpp:28:29: error: 'System' was not declared in this scope
                             System.out.println(a);
                             ^
1_783_1579_19135.cpp:36:28: error: 'System' was not declared in this scope
                 if (tmp==1)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 07:59:24, Gzip enabled