0_0_16795231_15693.cpp:3:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_16795231_15693.cpp:6:9: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_16795231_15693.cpp:6:26: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_16795231_15693.cpp:6:35: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_16795231_15693.cpp:26:1: error: expected ';' after class definition
}
^
0_0_16795231_15693.cpp: In static member function 'static void Main::main(int*)':
0_0_16795231_15693.cpp:7:3: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_16795231_15693.cpp:8:25: error: initializer fails to determine size of 'han'
long han[]=new long[21];
^
0_0_16795231_15693.cpp:8:25: error: array must be initialized with a brace-enclosed initializer
0_0_16795231_15693.cpp:11:21: error: request for member 'length' in 'han', which is of non-class type 'long int [1]'
for(int i=2;i<han.length;i++){
^
0_0_16795231_15693.cpp:14:24: error: initializer fails to determine size of 'ww'
long ww[]=new long[21];
^
0_0_16795231_15693.cpp:14:24: error: array must be initialized with a brace-enclosed initializer
0_0_16795231_15693.cpp:16:21: error: request for member 'length' in 'ww', which is of non-class type 'long int [1]'
for(int i =2;i<ww.length;i++){
^
0_0_16795231_15693.cpp:19:11: error: 'sc' was not declared in this scope
int n = sc.nextInt();
^
0_0_16795231_15693.cpp:22:4: error: 'System' was not declared in this scope
System.out.println(ww[m]);
^
|