0_0_14762687_6754\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_14762687_6754\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
^
0_0_14762687_6754\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_14762687_6754\Main.java:3: 错误: 非法字符: '#'
#include<math.h>
^
0_0_14762687_6754\Main.java:5: 错误: 需要class, interface或enum
double dfs(int k,int n,int money)
^
0_0_14762687_6754\Main.java:8: 错误: 需要class, interface或enum
if(k==n)
^
0_0_14762687_6754\Main.java:11: 错误: 需要class, interface或enum
return 0.5/(1-fls)*0.75*money*2+(0.5-fls)/(1-fls)*money;
^
0_0_14762687_6754\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_14762687_6754\Main.java:14: 错误: 需要class, interface或enum
uy=money/temp;//uy为概率临界值 当概率等于uy并且概率可以等于uy时 选择回答与不回答的期望一致
^
0_0_14762687_6754\Main.java:15: 错误: 需要class, interface或enum
if(uy>fls)return (1-uy)/(1-fls)*(1+uy)/2*temp+(uy-fls)/(1-fls)*money;//若概率可以等于uy 返回回答+不回答的期望
^
0_0_14762687_6754\Main.java:16: 错误: 需要class, interface或enum
return (1+fls)/2*temp;//若概率不可以等于uy则必选择回答
^
0_0_14762687_6754\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_14762687_6754\Main.java:21: 错误: 需要class, interface或enum
double how;
^
0_0_14762687_6754\Main.java:22: 错误: 需要class, interface或enum
while((scanf("%d%lf",&n,&fls))!=EOF)
^
0_0_14762687_6754\Main.java:25: 错误: 需要class, interface或enum
how=dfs(1,n,1);
^
0_0_14762687_6754\Main.java:26: 错误: 需要class, interface或enum
printf("%.3lf\n",how);
^
0_0_14762687_6754\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_14762687_6754\Main.java:29: 错误: 需要class, interface或enum
}
^
18 个错误
|