0_0_23145031_21115.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include #include #include #include #include using namespace
^
0_0_23145031_21115.cpp:12:1: error: stray '\317' in program
win_num[i][j][k]i先发球j赢下一次j先发球的时间期望
^
0_0_23145031_21115.cpp:12:1: error: stray '\310' in program
0_0_23145031_21115.cpp:12:1: error: stray '\267' in program
0_0_23145031_21115.cpp:12:1: error: stray '\242' in program
0_0_23145031_21115.cpp:12:1: error: stray '\307' in program
0_0_23145031_21115.cpp:12:1: error: stray '\362' in program
0_0_23145031_21115.cpp:12:1: error: stray '\323' in program
0_0_23145031_21115.cpp:12:1: error: stray '\256' in program
0_0_23145031_21115.cpp:12:1: error: stray '\317' in program
0_0_23145031_21115.cpp:12:1: error: stray '\302' in program
0_0_23145031_21115.cpp:12:1: error: stray '\322' in program
0_0_23145031_21115.cpp:12:1: error: stray '\273' in program
0_0_23145031_21115.cpp:12:1: error: stray '\264' in program
0_0_23145031_21115.cpp:12:1: error: stray '\316' in program
0_0_23145031_21115.cpp:12:1: error: stray '\317' in program
0_0_23145031_21115.cpp:12:1: error: stray '\310' in program
0_0_23145031_21115.cpp:12:1: error: stray '\267' in program
0_0_23145031_21115.cpp:12:1: error: stray '\242' in program
0_0_23145031_21115.cpp:12:1: error: stray '\307' in program
0_0_23145031_21115.cpp:12:1: error: stray '\362' in program
0_0_23145031_21115.cpp:12:1: error: stray '\265' in program
0_0_23145031_21115.cpp:12:1: error: stray '\304' in program
0_0_23145031_21115.cpp:12:1: error: stray '\312' in program
0_0_23145031_21115.cpp:12:1: error: stray '\261' in program
0_0_23145031_21115.cpp:12:1: error: stray '\274' in program
0_0_23145031_21115.cpp:12:1: error: stray '\344' in program
0_0_23145031_21115.cpp:12:1: error: stray '\306' in program
0_0_23145031_21115.cpp:12:1: error: stray '\332' in program
0_0_23145031_21115.cpp:12:1: error: stray '\315' in program
0_0_23145031_21115.cpp:12:1: error: stray '\373' in program
0_0_23145031_21115.cpp:18:1: error: stray '\307' in program
球员s第一个发球
^
0_0_23145031_21115.cpp:18:1: error: stray '\362' in program
0_0_23145031_21115.cpp:18:1: error: stray '\324' in program
0_0_23145031_21115.cpp:18:1: error: stray '\261' in program
0_0_23145031_21115.cpp:18:1: error: stray '\265' in program
0_0_23145031_21115.cpp:18:1: error: stray '\332' in program
0_0_23145031_21115.cpp:18:1: error: stray '\322' in program
0_0_23145031_21115.cpp:18:1: error: stray '\273' in program
0_0_23145031_21115.cpp:18:1: error: stray '\270' in program
0_0_23145031_21115.cpp:18:1: error: stray '\366' in program
0_0_23145031_21115.cpp:18:1: error: stray '\267' in program
0_0_23145031_21115.cpp:18:1: error: stray '\242' in program
0_0_23145031_21115.cpp:18:1: error: stray '\307' in program
0_0_23145031_21115.cpp:18:1: error: stray '\362' in program
0_0_23145031_21115.cpp:51:1: error: stray '\302' in program
轮到球员v发球
^
0_0_23145031_21115.cpp:51:1: error: stray '\326' in program
0_0_23145031_21115.cpp:51:1: error: stray '\265' in program
0_0_23145031_21115.cpp:51:1: error: stray '\275' in program
0_0_23145031_21115.cpp:51:1: error: stray '\307' in program
0_0_23145031_21115.cpp:51:1: error: stray '\362' in program
0_0_23145031_21115.cpp:51:1: error: stray '\324' in program
0_0_23145031_21115.cpp:51:1: error: stray '\261' in program
0_0_23145031_21115.cpp:51:1: error: stray '\267' in program
0_0_23145031_21115.cpp:51:1: error: stray '\242' in program
0_0_23145031_21115.cpp:51:1: error: stray '\307' in program
0_0_23145031_21115.cpp:51:1: error: stray '\362' in program
0_0_23145031_21115.cpp:3:1: error: 'std' does not name a type
std;
^
0_0_23145031_21115.cpp:5:1: error: expected unqualified-id before numeric constant
1e-10
^
0_0_23145031_21115.cpp:12:1: error: 'win_num' does not name a type
win_num[i][j][k]i先发球j赢下一次j先发球的时间期望
^
0_0_23145031_21115.cpp:17:22: error: 'p' has not been declared
void dfs(int pl1,db p,int pl2,int v,int s){//球员0赢的球数 当前状态的概率 球员1赢的球数 轮到球员v发球
^
0_0_23145031_21115.cpp: In function 'void dfs(int, int, int, int, int)':
0_0_23145031_21115.cpp:20:3: error: expected ';' before 'if'
if((pl1 == 6&&pl2 <= 4)||pl1 ==7){
^
0_0_23145031_21115.cpp:35:1: error: 'win_num' was not declared in this scope
win_num[s][1][v] += p*(pl1+pl2)*5.;
^
0_0_23145031_21115.cpp:35:21: error: 'p' was not declared in this scope
win_num[s][1][v] += p*(pl1+pl2)*5.;
^
0_0_23145031_21115.cpp:38:1: error: 'dp' was not declared in this scope
dp[s][1][v] += p;
^
0_0_23145031_21115.cpp:45:9: error: 'p' was not declared in this scope
dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s);
^
0_0_23145031_21115.cpp:45:11: error: 'p2' was not declared in this scope
dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s);
^
0_0_23145031_21115.cpp:48:11: error: 'p' was not declared in this scope
dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);
^
0_0_23145031_21115.cpp:48:13: error: 'p1' was not declared in this scope
dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);
^
0_0_23145031_21115.cpp: At global scope:
0_0_23145031_21115.cpp:50:26: error: 'dbpl1' has not been declared
void dfs2(int l1,int l2,dbpl1,db p,db pl2,int v){//球员0赢的场数 球员1赢的场数 球员0赢的时间期望 当前状态概率 球员1赢的时间期望
^
0_0_23145031_21115.cpp:50:35: error: 'p' has not been declared
void dfs2(int l1,int l2,dbpl1,db p,db pl2,int v){//球员0赢的场数 球员1赢的场数 球员0赢的时间期望 当前状态概率 球员1赢的时间期望
^
0_0_23145031_21115.cpp:50:40: error: 'pl2' has not been declared
void dfs2(int l1,int l2,dbpl1,db p,db pl2,int v){//球员0赢的场数 球员1赢的场数 球员0赢的时间期望 当前状态概率 球员1赢的时间期望
^
0_0_23145031_21115.cpp: In function 'void dfs2(int, int, int, int, int, int)':
0_0_23145031_21115.cpp:53:3: error: expected ';' before 'if'
if(l1 == 3||l2 == 3){
^
0_0_23145031_21115.cpp:63:14: error: 'pl1' was not declared in this scope
dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0);
^
0_0_23145031_21115.cpp:63:18: error: 'win_num' was not declared in this scope
dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0);
^
0_0_23145031_21115.cpp:63:35: error: 'dp' was not declared in this scope
dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0);
^
0_0_23145031_21115.cpp:63:47: error: 'p' was not declared in this scope
dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0);
^
0_0_23145031_21115.cpp:63:49: error: 'pl2' was not declared in this scope
dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0);
^
0_0_23145031_21115.cpp: In function 'int main()':
0_0_23145031_21115.cpp:94:24: error: 'p1' was not declared in this scope
scanf("%s%s%lf",&s,&s,&p1);
^
0_0_23145031_21115.cpp:97:24: error: 'p2' was not declared in this scope
scanf("%s%s%lf",&s,&s,&p2);
^
0_0_23145031_21115.cpp:105:7: error: 'ans' was not declared in this scope
ans =
^
0_0_23145031_21115.cpp:110:77: error: 'win_num' was not declared in this scope
for(i = 0;i < 2; i ++) for(j = 0; j < 2; j ++) for(k = 0; k < 2; k++) win_num[i][j][k] = dp[i][j][k] = 0.;
^
0_0_23145031_21115.cpp:110:96: error: 'dp' was not declared in this scope
for(i = 0;i < 2; i ++) for(j = 0; j < 2; j ++) for(k = 0; k < 2; k++) win_num[i][j][k] = dp[i][j][k] = 0.;
^
0_0_23145031_21115.cpp:120:85: error: 'dp' was not declared in this scope
for(i = 0;i < 2; i ++) for(j = 0; j < 2; j ++) for(k = 0; k < 2; k++) if(sign(dp[i][j][k])) win_num[i][j][k] /=
^
0_0_23145031_21115.cpp:120:96: error: 'sign' was not declared in this scope
for(i = 0;i < 2; i ++) for(j = 0; j < 2; j ++) for(k = 0; k < 2; k++) if(sign(dp[i][j][k])) win_num[i][j][k] /=
^
0_0_23145031_21115.cpp:120:99: error: 'win_num' was not declared in this scope
for(i = 0;i < 2; i ++) for(j = 0; j < 2; j ++) for(k = 0; k < 2; k++) if(sign(dp[i][j][k])) win_num[i][j][k] /=
^
|