0_0_36619696_20342.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_36619696_20342.cpp:4:12: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_36619696_20342.cpp:4:29: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_36619696_20342.cpp:4:38: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_36619696_20342.cpp:33:1: error: expected ';' after class definition
}
^
0_0_36619696_20342.cpp: In static member function 'static void T9::main(int*)':
0_0_36619696_20342.cpp:5:9: error: 'Scanner' was not declared in this scope
Scanner sc=new Scanner(System.in);
^
0_0_36619696_20342.cpp:6:15: error: 'sc' was not declared in this scope
int T=sc.nextInt();
^
0_0_36619696_20342.cpp:12:21: error: 'boolean' was not declared in this scope
boolean flag = true;
^
0_0_36619696_20342.cpp:18:33: error: 'flag' was not declared in this scope
flag = false;
^
0_0_36619696_20342.cpp:24:25: error: 'flag' was not declared in this scope
if (flag) {
^
0_0_36619696_20342.cpp:25:25: error: 'System' was not declared in this scope
System.out.println("YES");
^
0_0_36619696_20342.cpp:27:25: error: 'System' was not declared in this scope
System.out.println("NO");
^
|