0_0_19231200_27918.cpp:20:1: error: 'doubledb' does not name a type
doubledb ans,p1,p2,win1,win2,win_num[2][2][2],dp[2][2][2];
^
0_0_19231200_27918.cpp:21:13: error: 'x' was not declared in this scope
int sign(db x){ return (x > eps) - (x < -eps);}
^
0_0_19231200_27918.cpp:21:15: error: expected ',' or ';' before '{' token
int sign(db x){ return (x > eps) - (x < -eps);}
^
0_0_19231200_27918.cpp:23:12: error: 'p' has not been declared
int pl1,db p,
^
0_0_19231200_27918.cpp: In function 'void dfs(int, int, int, int, int)':
0_0_19231200_27918.cpp:26:55: error: 'win_num' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:75: error: 'p' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:98: error: 'dp' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:183: error: 'win_num' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:203: error: 'p' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:226: error: 'dp' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:282: error: 'p' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:284: error: 'p2' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:350: error: 'p' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp:26:352: error: 'p1' was not declared in this scope
int s){ if((pl1 == 6&&pl2 <= 4)||pl1 == 7){ win_num[s][0][v] += p*(pl1+pl2)*5.; dp[s][0][v] += p; return ; } if((pl2 == 6&&pl1 <= 4)||pl2 == 7){ win_num[s][1][v] += p*(pl1+pl2)*5.; dp[s][1][v] += p; return ; } if(v) dfs(pl1,p*p2,pl2+1,v^1,s),dfs(pl1+1,p*(1.-p2),pl2,v^1,s); else dfs(pl1+1,p*p1,pl2,v^1,s),dfs(pl1,p*(1.-p1),pl2+1,v^1,s);}
^
0_0_19231200_27918.cpp: At global scope:
0_0_19231200_27918.cpp:29:11: error: 'pl1' has not been declared
int l2,db pl1,db p,db pl2,
^
0_0_19231200_27918.cpp:29:18: error: 'p' has not been declared
int l2,db pl1,db p,db pl2,
^
0_0_19231200_27918.cpp:29:23: error: 'pl2' has not been declared
int l2,db pl1,db p,db pl2,
^
0_0_19231200_27918.cpp: In function 'void dfs2(int, int, int, int, int, int)':
0_0_19231200_27918.cpp:30:41: error: 'ans' was not declared in this scope
int v){ if(l1 == 3||l2 == 3){ ans += p*(pl1+pl2); return ; } dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0); dfs2(l1+1,l2,pl1+win_num[v][0][1],dp[v][0][1]*p,pl2,1); dfs2(l1,l2+1,pl1,dp[v][1][0]*p,pl2+win_num[v][1][0],0); dfs2(l1,l2+1,pl1,dp[v][1][1]*p,pl2+win_num[v][1][1],1);}
^
0_0_19231200_27918.cpp:30:48: error: 'p' was not declared in this scope
int v){ if(l1 == 3||l2 == 3){ ans += p*(pl1+pl2); return ; } dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0); dfs2(l1+1,l2,pl1+win_num[v][0][1],dp[v][0][1]*p,pl2,1); dfs2(l1,l2+1,pl1,dp[v][1][0]*p,pl2+win_num[v][1][0],0); dfs2(l1,l2+1,pl1,dp[v][1][1]*p,pl2+win_num[v][1][1],1);}
^
0_0_19231200_27918.cpp:30:51: error: 'pl1' was not declared in this scope
int v){ if(l1 == 3||l2 == 3){ ans += p*(pl1+pl2); return ; } dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0); dfs2(l1+1,l2,pl1+win_num[v][0][1],dp[v][0][1]*p,pl2,1); dfs2(l1,l2+1,pl1,dp[v][1][0]*p,pl2+win_num[v][1][0],0); dfs2(l1,l2+1,pl1,dp[v][1][1]*p,pl2+win_num[v][1][1],1);}
^
0_0_19231200_27918.cpp:30:55: error: 'pl2' was not declared in this scope
int v){ if(l1 == 3||l2 == 3){ ans += p*(pl1+pl2); return ; } dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0); dfs2(l1+1,l2,pl1+win_num[v][0][1],dp[v][0][1]*p,pl2,1); dfs2(l1,l2+1,pl1,dp[v][1][0]*p,pl2+win_num[v][1][0],0); dfs2(l1,l2+1,pl1,dp[v][1][1]*p,pl2+win_num[v][1][1],1);}
^
0_0_19231200_27918.cpp:30:98: error: 'pl1' was not declared in this scope
int v){ if(l1 == 3||l2 == 3){ ans += p*(pl1+pl2); return ; } dfs2(l1+1,l2,pl1+win_num[v][0][0],dp[v][0][0]*p,pl2,0); dfs2(l1+1,l2,pl1+win_num[v][0][1],dp[v][0][1]*p,pl2,1); dfs2(l1,l2+1,pl1,dp[v][1][0]*
|