0_0_18811761_1153.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_18811761_1153.cpp:3:9: error: expected ':' before 'static'
public static void main(String args[]){
^
0_0_18811761_1153.cpp:3:26: error: 'String' has not been declared
public static void main(String args[]){
^
0_0_18811761_1153.cpp:17:1: error: expected ';' after class definition
}
^
0_0_18811761_1153.cpp: In static member function 'static void Main::main(int*)':
0_0_18811761_1153.cpp:4:3: error: 'Scanner' was not declared in this scope
Scanner sc=new Scanner(System.in);
^
0_0_18811761_1153.cpp:5:9: error: 'sc' was not declared in this scope
while(sc.hasNext()){
^
0_0_18811761_1153.cpp:8:5: error: 'String' was not declared in this scope
String a=sc.next();
^
0_0_18811761_1153.cpp:9:5: error: 'StringBuffer' was not declared in this scope
StringBuffer b=new StringBuffer(a);
^
0_0_18811761_1153.cpp:10:12: error: expected ';' before 'c'
String c=sc.next();
^
0_0_18811761_1153.cpp:11:5: error: 'b' was not declared in this scope
b.insert(a.length()/2, c);
^
0_0_18811761_1153.cpp:11:14: error: 'a' was not declared in this scope
b.insert(a.length()/2, c);
^
0_0_18811761_1153.cpp:11:28: error: 'c' was not declared in this scope
b.insert(a.length()/2, c);
^
0_0_18811761_1153.cpp:12:5: error: 'System' was not declared in this scope
System.out.println(b);
^
0_0_18811761_1153.cpp:15:3: error: 'sc' was not declared in this scope
sc.close();
^
|