0_0_15396744_27577.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_15396744_27577.cpp:2:1: error: 'import' does not name a type
import java.lang.String;
^
0_0_15396744_27577.cpp:4:10: error: expected ':' before 'static'
public static void main(String[] args){
^
0_0_15396744_27577.cpp:4:27: error: 'String' has not been declared
public static void main(String[] args){
^
0_0_15396744_27577.cpp:4:36: error: expected ',' or '...' before 'args'
public static void main(String[] args){
^
0_0_15396744_27577.cpp:20:1: error: expected ';' after class definition
}
^
0_0_15396744_27577.cpp: In static member function 'static void Main::main(int*)':
0_0_15396744_27577.cpp:5:7: error: 'Scanner' was not declared in this scope
Scanner in =new Scanner(System.in);
^
0_0_15396744_27577.cpp:6:26: error: initializer fails to determine size of 'a'
char a[]=new char[3];
^
0_0_15396744_27577.cpp:6:26: error: array must be initialized with a brace-enclosed initializer
0_0_15396744_27577.cpp:7:13: error: 'in' was not declared in this scope
while(in.hasNextLine()){
^
0_0_15396744_27577.cpp:8:11: error: 'String' was not declared in this scope
String s=new String(in.nextLine());
^
0_0_15396744_27577.cpp:9:25: error: 's' was not declared in this scope
for(int i=0;i<s.length();i++)
^
0_0_15396744_27577.cpp:13:25: error: 's' was not declared in this scope
for(int i=0;i<s.length();i++) {if(a[i]!=min&&a[i]!=temp) t=a[i];}
^
0_0_15396744_27577.cpp:14:10: error: 'System' was not declared in this scope
System.out.println(min+" "+temp+" "+t);
^
0_0_15396744_27577.cpp:14:42: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
System.out.println(min+" "+temp+" "+t);
^
0_0_15396744_27577.cpp:17:7: error: 'in' was not declared in this scope
in.close();
^
|