0_0_37706827_27595.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_37706827_27595.cpp:4:12: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_37706827_27595.cpp:4:29: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_37706827_27595.cpp:4:38: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_37706827_27595.cpp:24:1: error: expected ';' after class definition
}
^
0_0_37706827_27595.cpp: In static member function 'static void text02::main(int*)':
0_0_37706827_27595.cpp:5:9: error: 'Scanner' was not declared in this scope
Scanner scan = new Scanner(System.in);
^
0_0_37706827_27595.cpp:6:21: error: 'scan' was not declared in this scope
int times = scan.nextInt();
^
0_0_37706827_27595.cpp:9:16: error: expected unqualified-id before '[' token
int[] arr = new int[n + 1];
^
0_0_37706827_27595.cpp:10:13: error: 'boolean' was not declared in this scope
boolean win = false;
^
0_0_37706827_27595.cpp:12:17: error: 'arr' was not declared in this scope
arr[k] = scan.nextInt();
^
0_0_37706827_27595.cpp:13:37: error: 'Math' was not declared in this scope
if (arr[k] >= (int) Math.pow(2, k)) {
^
0_0_37706827_27595.cpp:14:21: error: 'win' was not declared in this scope
win = true;
^
0_0_37706827_27595.cpp:17:17: error: 'win' was not declared in this scope
if (win) {
^
0_0_37706827_27595.cpp:18:17: error: 'System' was not declared in this scope
System.out.println("Alise");
^
0_0_37706827_27595.cpp:20:17: error: 'System' was not declared in this scope
System.out.println("Bob");
^
|