0_0_18752169_15563.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_18752169_15563.cpp:2:1: error: 'import' does not name a type
import java.lang.*;
^
0_0_18752169_15563.cpp:4:9: error: expected ':' before 'static'
public static void main(String args[]){
^
0_0_18752169_15563.cpp:4:26: error: 'String' has not been declared
public static void main(String args[]){
^
0_0_18752169_15563.cpp:32:1: error: expected ';' after class definition
}
^
0_0_18752169_15563.cpp: In static member function 'static void Main::main(int*)':
0_0_18752169_15563.cpp:5:3: error: 'Scanner' was not declared in this scope
Scanner sc=new Scanner(System.in);
^
0_0_18752169_15563.cpp:6:9: error: 'sc' was not declared in this scope
while(sc.hasNext()){
^
0_0_18752169_15563.cpp:9:4: error: 'String' was not declared in this scope
String s="";
^
0_0_18752169_15563.cpp:12:17: error: 'System' was not declared in this scope
System.out.print("-");
^
0_0_18752169_15563.cpp:21:21: error: 's' was not declared in this scope
s=s+d;
^
0_0_18752169_15563.cpp:24:21: error: 's' was not declared in this scope
s=s+t;
^
0_0_18752169_15563.cpp:27:13: error: 'StringBuffer' was not declared in this scope
StringBuffer str=new StringBuffer(s);
^
0_0_18752169_15563.cpp:28:13: error: 's' was not declared in this scope
s=str.reverse().toString();
^
0_0_18752169_15563.cpp:28:15: error: 'str' was not declared in this scope
s=str.reverse().toString();
^
0_0_18752169_15563.cpp:29:13: error: 'System' was not declared in this scope
System.out.println(str);
^
|