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