0_0_14720663_17488.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_14720663_17488.cpp:9:9: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_14720663_17488.cpp:9:26: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_14720663_17488.cpp:9:35: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_14720663_17488.cpp:19:1: error: expected ';' after class definition
}
^
0_0_14720663_17488.cpp: In static member function 'static void Main::main(int*)':
0_0_14720663_17488.cpp:11:3: error: 'Scanner' was not declared in this scope
Scanner cin = new Scanner(System.in);
^
0_0_14720663_17488.cpp:13:9: error: 'cin' was not declared in this scope
while(cin.hasNextInt()){
^
0_0_14720663_17488.cpp:16:4: error: 'System' was not declared in this scope
System.out.println(a+b);
^
|