0_0_16795267_31134.cpp:2:9: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_16795267_31134.cpp:2:26: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_16795267_31134.cpp:2:35: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_16795267_31134.cpp:22:1: error: expected ';' after class definition
}
^
0_0_16795267_31134.cpp: In static member function 'static void Main::main(int*)':
0_0_16795267_31134.cpp:3:3: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_16795267_31134.cpp:4:25: error: initializer fails to determine size of 'han'
long han[]=new long[21];
^
0_0_16795267_31134.cpp:4:25: error: array must be initialized with a brace-enclosed initializer
0_0_16795267_31134.cpp:7: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_16795267_31134.cpp:10:24: error: initializer fails to determine size of 'ww'
long ww[]=new long[21];
^
0_0_16795267_31134.cpp:10:24: error: array must be initialized with a brace-enclosed initializer
0_0_16795267_31134.cpp:12: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_16795267_31134.cpp:15:11: error: 'sc' was not declared in this scope
int n = sc.nextInt();
^
0_0_16795267_31134.cpp:18:4: error: 'System' was not declared in this scope
System.out.println(ww[m]);
^
|