0_0_32699883_29480.cpp:1:1: error: 'import' does not name a type
import java.math.BigDecimal;
^
0_0_32699883_29480.cpp:2:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_32699883_29480.cpp:5:12: error: expected ':' before 'static'
public static void main(String[] arg){
^
0_0_32699883_29480.cpp:5:29: error: 'String' has not been declared
public static void main(String[] arg){
^
0_0_32699883_29480.cpp:5:38: error: expected ',' or '...' before 'arg'
public static void main(String[] arg){
^
0_0_32699883_29480.cpp:14:1: error: expected ';' after class definition
}
^
0_0_32699883_29480.cpp: In static member function 'static void Main::main(int*)':
0_0_32699883_29480.cpp:6:9: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_32699883_29480.cpp:8:13: error: 'BigDecimal' was not declared in this scope
BigDecimal a = sc.nextBigDecimal();
^
0_0_32699883_29480.cpp:9:24: error: expected ';' before 'b'
BigDecimal b = sc.nextBigDecimal();
^
0_0_32699883_29480.cpp:10:13: error: 'a' was not declared in this scope
a = a.add(b);
^
0_0_32699883_29480.cpp:10:23: error: 'b' was not declared in this scope
a = a.add(b);
^
0_0_32699883_29480.cpp:11:13: error: 'System' was not declared in this scope
System.out.println(a);
^
|