0_0_13901853_14589.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_13901853_14589.cpp:3:10: error: expected ':' before 'static'
public static void main(String args[]){
^
0_0_13901853_14589.cpp:3:27: error: 'String' has not been declared
public static void main(String args[]){
^
0_0_13901853_14589.cpp:23:1: error: expected ';' after class definition
}
^
0_0_13901853_14589.cpp: In static member function 'static void Main::main(int*)':
0_0_13901853_14589.cpp:4:5: error: 'Scanner' was not declared in this scope
Scanner sc= new Scanner(System.in);
^
0_0_13901853_14589.cpp:5:13: error: 'sc' was not declared in this scope
while(sc.hasNext()){
^
0_0_13901853_14589.cpp:6:8: error: 'String' was not declared in this scope
String str=sc.nextLine();
^
0_0_13901853_14589.cpp:7:19: error: 'str' was not declared in this scope
char chs[]=str.toCharArray();
^
0_0_13901853_14589.cpp:8:8: error: 'boolean' was not declared in this scope
boolean boo=true;
^
0_0_13901853_14589.cpp:9:26: error: request for member 'length' in 'chs', which is of non-class type 'char [1]'
for(int i=0;i<chs.length;i++){
^
0_0_13901853_14589.cpp:10:16: error: expected primary-expression before ']' token
if(chs[]=' '){
^
0_0_13901853_14589.cpp:11:10: error: 'boo' was not declared in this scope
boo=true;
^
0_0_13901853_14589.cpp:14:13: error: 'boo' was not declared in this scope
if(boo&&chs[i]>='a'&&chs[]<='z'){
^
0_0_13901853_14589.cpp:14:35: error: expected primary-expression before ']' token
if(boo&&chs[i]>='a'&&chs[]<='z'){
^
0_0_13901853_14589.cpp:15:15: error: expected primary-expression before ']' token
chs[]=(char)(chs[i]-32);
^
0_0_13901853_14589.cpp:19:19: error: expected type-specifier before 'String'
str = new String(chs);
^
0_0_13901853_14589.cpp:20:9: error: 'System' was not declared in this scope
System.out.println(str);
^
|