1_736_3310_10971.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
1_736_3310_10971.cpp:2:1: error: 'import' does not name a type
import java.math.BigInteger;
^
1_736_3310_10971.cpp:3:1: error: 'import' does not name a type
import java.math.BigDecimal;
^
1_736_3310_10971.cpp:6:12: error: expected ':' before 'static'
public static void main(String[] args){
^
1_736_3310_10971.cpp:6:29: error: 'String' has not been declared
public static void main(String[] args){
^
1_736_3310_10971.cpp:6:38: error: expected ',' or '...' before 'args'
public static void main(String[] args){
^
1_736_3310_10971.cpp:19:12: error: expected ':' before 'static'
public static int solve(BigInteger a, BigInteger b){
^
1_736_3310_10971.cpp:19:29: error: 'BigInteger' has not been declared
public static int solve(BigInteger a, BigInteger b){
^
1_736_3310_10971.cpp:19:43: error: 'BigInteger' has not been declared
public static int solve(BigInteger a, BigInteger b){
^
1_736_3310_10971.cpp:32:1: error: expected ';' after class definition
}
^
1_736_3310_10971.cpp: In static member function 'static void Main::main(int*)':
1_736_3310_10971.cpp:7:9: error: 'Scanner' was not declared in this scope
Scanner in = new Scanner(System.in);
^
1_736_3310_10971.cpp:8:15: error: 'in' was not declared in this scope
while(in.hasNext()){
^
1_736_3310_10971.cpp:9:13: error: 'BigInteger' was not declared in this scope
BigInteger a = new BigInteger(in.next());
^
1_736_3310_10971.cpp:10:24: error: expected ';' before 'b'
BigInteger b = new BigInteger(in.next());
^
1_736_3310_10971.cpp:11:16: error: 'a' was not declared in this scope
if(a.compareTo(b) < 0){
^
1_736_3310_10971.cpp:11:28: error: 'b' was not declared in this scope
if(a.compareTo(b) < 0){
^
1_736_3310_10971.cpp:12:28: error: expected ';' before 'c'
BigInteger c = a;
^
1_736_3310_10971.cpp:14:21: error: 'c' was not declared in this scope
b = c;
^
1_736_3310_10971.cpp:16:13: error: 'System' was not declared in this scope
System.out.println(solve(a, b));
^
1_736_3310_10971.cpp:16:38: error: 'a' was not declared in this scope
System.out.println(solve(a, b));
^
1_736_3310_10971.cpp:16:41: error: 'b' was not declared in this scope
System.out.println(solve(a, b));
^
1_736_3310_10971.cpp: In static member function 'static int Main::solve(int, int)':
1_736_3310_10971.cpp:20:9: error: 'BigInteger' was not declared in this scope
BigInteger d = a.subtract(b);
^
1_736_3310_10971.cpp:21:9: error: 'BigDecimal' was not declared in this scope
BigDecimal g = new BigDecimal(d.toString());
^
1_736_3310_10971.cpp:22:9: error: 'g' was not declared in this scope
g = g.multiply(BigDecimal.valueOf(Math.sqrt(5.0))).add(g).multiply(BigDecimal.valueOf(0.5));
^
1_736_3310_10971.cpp:22:43: error: 'Math' was not declared in this scope
g = g.multiply(BigDecimal.valueOf(Math.sqrt(5.0))).add(g).multiply(BigDecimal.valueOf(0.5));
^
1_736_3310_10971.cpp:24:9: error: 'd' was not declared in this scope
d = g.toBigInteger();
^
1_736_3310_10971.cpp:26:14: error: request for member 'equals' in 'b', which is of non-class type 'int'
if(b.equals(d)){
^
|