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