0_0_24242246_30016.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_24242246_30016.cpp:4:9: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_24242246_30016.cpp:4:26: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_24242246_30016.cpp:4:35: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_24242246_30016.cpp:51:10: error: expected ':' before 'static'
private static void print(double a[]) {
^
0_0_24242246_30016.cpp:61:1: error: expected ';' after class definition
}
^
0_0_24242246_30016.cpp: In static member function 'static void Main::main(int*)':
0_0_24242246_30016.cpp:5:3: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_24242246_30016.cpp:6:9: error: 'sc' was not declared in this scope
while(sc.hasNext()){
^
0_0_24242246_30016.cpp:9:12: error: declaration of 'a' as multidimensional array must have bounds for all dimensions except the first
int a[][]=new int[n][m];
^
0_0_24242246_30016.cpp:9:26: error: array size in new-expression must be constant
int a[][]=new int[n][m];
^
0_0_24242246_30016.cpp:9:26: error: the value of 'm' is not usable in a constant expression
0_0_24242246_30016.cpp:12:28: error: initializer fails to determine size of 'pa'
double pa[]=new double[n];//personAverage
^
0_0_24242246_30016.cpp:12:28: error: array must be initialized with a brace-enclosed initializer
0_0_24242246_30016.cpp:13:28: error: initializer fails to determine size of 'ca'
double ca[]=new double[m];//classAverage
^
0_0_24242246_30016.cpp:13:28: error: array must be initialized with a brace-enclosed initializer
0_0_24242246_30016.cpp:17:6: error: 'a' was not declared in this scope
a[i][j]=sc.nextInt();
^
0_0_24242246_30016.cpp:28:9: error: 'a' was not declared in this scope
c+=a[i][j];
^
0_0_24242246_30016.cpp:38:9: error: 'a' was not declared in this scope
if(a[i][j]<ca[j]){
^
0_0_24242246_30016.cpp:48:4: error: 'System' was not declared in this scope
System.out.println(count);
^
0_0_24242246_30016.cpp: In static member function 'static void Main::print(double*)':
0_0_24242246_30016.cpp:52:19: error: request for member 'length' in 'a', which is of non-class type 'double*'
for(int i=0;i<a.length;i++){
^
0_0_24242246_30016.cpp:53:4: error: 'System' was not declared in this scope
System.out.printf("%.2f",a[i]);
^
0_0_24242246_30016.cpp:54:11: error: request for member 'length' in 'a', which is of non-class type 'double*'
if(i<a.length-1){
^
|