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