0_0_15276731_21438.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_15276731_21438.cpp:3:11: error: expected ':' before 'static'
public static void main(String args[]){
^
0_0_15276731_21438.cpp:3:28: error: 'String' has not been declared
public static void main(String args[]){
^
0_0_15276731_21438.cpp:25:1: error: expected ';' after class definition
}
^
0_0_15276731_21438.cpp: In static member function 'static void Main::main(int*)':
0_0_15276731_21438.cpp:4:4: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_15276731_21438.cpp:5:13: error: 'sc' was not declared in this scope
while(sc.hasNext()){
^
0_0_15276731_21438.cpp:6:9: error: 'String' was not declared in this scope
String str = sc.next();
^
0_0_15276731_21438.cpp:7:12: error: 'str' was not declared in this scope
if(str.length()>100){
^
0_0_15276731_21438.cpp:10:28: error: 'str' was not declared in this scope
char a[]=new char [str.length()];
^
0_0_15276731_21438.cpp:10:40: error: initializer fails to determine size of 'a'
char a[]=new char [str.length()];
^
0_0_15276731_21438.cpp:10:40: error: array must be initialized with a brace-enclosed initializer
0_0_15276731_21438.cpp:21:13: error: 'System' was not declared in this scope
System.out.println(str);
^
|