0_0_28886746_20926.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_28886746_20926.cpp:4:12: error: expected ':' before 'static'
public static void main(String [] args){
^
0_0_28886746_20926.cpp:4:29: error: 'String' has not been declared
public static void main(String [] args){
^
0_0_28886746_20926.cpp:4:39: error: expected ',' or '...' before 'args'
public static void main(String [] args){
^
0_0_28886746_20926.cpp:35:1: error: expected ';' after class definition
}
^
0_0_28886746_20926.cpp: In static member function 'static void Main::main(int*)':
0_0_28886746_20926.cpp:5:9: error: 'Scanner' was not declared in this scope
Scanner sc=new Scanner(System.in);
^
0_0_28886746_20926.cpp:6:15: error: 'sc' was not declared in this scope
int T=sc.nextInt();
^
0_0_28886746_20926.cpp:11:14: error: expected unqualified-id before '[' token
int []m=new int [N];
^
0_0_28886746_20926.cpp:12:10: error: 'Double' was not declared in this scope
Double []p=new Double[N];
^
0_0_28886746_20926.cpp:12:18: error: expected primary-expression before ']' token
Double []p=new Double[N];
^
0_0_28886746_20926.cpp:15:13: error: 'm' was not declared in this scope
m[i]=sc.nextInt();
^
0_0_28886746_20926.cpp:16:13: error: 'p' was not declared in this scope
p[i]=sc.nextDouble();
^
0_0_28886746_20926.cpp:20:17: error: expected unqualified-id before '[' token
double[] f=new double[sum+1];
^
0_0_28886746_20926.cpp:21:11: error: 'f' was not declared in this scope
f[0]=1;
^
0_0_28886746_20926.cpp:23:32: error: 'm' was not declared in this scope
for(int j=sum;j>=m[i];j--){
^
0_0_28886746_20926.cpp:24:24: error: 'Math' was not declared in this scope
f[j]=Math.max(f[j],f[j-m[i]]*(1-p[i]));
^
0_0_28886746_20926.cpp:24:51: error: 'p' was not declared in this scope
f[j]=Math.max(f[j],f[j-m[i]]*(1-p[i]));
^
0_0_28886746_20926.cpp:29:19: error: 'System' was not declared in this scope
System.out.println(i);
^
|