0_0_28634066_25690.cpp:3:9: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_28634066_25690.cpp:3:26: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_28634066_25690.cpp:3:35: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_28634066_25690.cpp:16:1: error: expected ';' after class definition
}
^
0_0_28634066_25690.cpp: In static member function 'static void Hello::main(int*)':
0_0_28634066_25690.cpp:5:3: error: 'Scanner' was not declared in this scope
Scanner s = new Scanner(System.in);
^
0_0_28634066_25690.cpp:7:8: error: 's' was not declared in this scope
a = s.nextInt();
^
0_0_28634066_25690.cpp:9:4: error: 'System' was not declared in this scope
System.out.println(a+b);
^
|