0_0_14017348_15721.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_14017348_15721.cpp:3:9: error: expected ':' before 'static'
public static void main(String args[]){
^
0_0_14017348_15721.cpp:3:26: error: 'String' has not been declared
public static void main(String args[]){
^
0_0_14017348_15721.cpp:17:9: error: expected ':' before 'static'
public static boolean equals(String a,String b){
^
0_0_14017348_15721.cpp:17:16: error: 'boolean' does not name a type
public static boolean equals(String a,String b){
^
0_0_14017348_15721.cpp:22:9: error: expected ':' before 'static'
public static String change(String s){
^
0_0_14017348_15721.cpp:22:16: error: 'String' does not name a type
public static String change(String s){
^
0_0_14017348_15721.cpp:61:1: error: expected ';' after class definition
}
^
0_0_14017348_15721.cpp: In static member function 'static void Main::main(int*)':
0_0_14017348_15721.cpp:4:3: error: 'String' was not declared in this scope
String num1,num2;
^
0_0_14017348_15721.cpp:5:3: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_14017348_15721.cpp:6:9: error: 'sc' was not declared in this scope
while(sc.hasNext()){
^
0_0_14017348_15721.cpp:7:4: error: 'num1' was not declared in this scope
num1 = sc.next();
^
0_0_14017348_15721.cpp:8:4: error: 'num2' was not declared in this scope
num2 = sc.next();
^
0_0_14017348_15721.cpp:9:23: error: 'equals' was not declared in this scope
if(equals(num1,num2)){
^
0_0_14017348_15721.cpp:10:5: error: 'System' was not declared in this scope
System.out.println("YES");
^
0_0_14017348_15721.cpp:12:5: error: 'System' was not declared in this scope
System.out.println("NO");
^
|