F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_19225709_9397.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];int sign(db x){    return (x > eps) - (x < -eps);}
 ^
0_0_19225709_9397.cpp:20:71: error: 'x' was not declared in this scope
 doubledb ans,p1,p2,win1,win2,win_num[2][2][2],dp[2][2][2];int sign(db x){    return (x > eps) - (x < -eps);}
                                                                       ^
0_0_19225709_9397.cpp:20:73: error: expected ',' or ';' before '{' token
 doubledb ans,p1,p2,win1,win2,win_num[2][2][2],dp[2][2][2];int sign(db x){    return (x > eps) - (x < -eps);}
                                                                         ^
0_0_19225709_9397.cpp:21:21: error: 'p' has not been declared
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp: In function 'void dfs(int, int, int, int, int)':
0_0_19225709_9397.cpp:21:91: error: 'win_num' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:111: error: 'p' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:134: error: 'dp' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:219: error: 'win_num' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:239: error: 'p' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:262: error: 'dp' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:318: error: 'p' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:320: error: 'p2' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:386: error: 'p' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp:21:388: error: 'p1' was not declared in this scope
 void dfs(int pl1,db p,int pl2,int v,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_19225709_9397.cpp: At global scope:
0_0_19225709_9397.cpp:22:28: error: 'pl1' has not been declared
 void dfs2(int l1,int l2,db pl1,db p,db pl2,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);}char s[256];
                            ^
0_0_19225709_9397.cpp:22:35: error: 'p' has not been declared
 void dfs2(int l1,int l2,db pl1,db p,db pl2,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);}char s[256];
                                   ^
0_0_19225709_9397.cpp:22:40: error: 'pl2' has not been declared
 void dfs2(int l1,int l2,db pl1,db p,db pl2,int v){    if(l1 == 3||l2 == 3){        ans += p*(pl1+pl2);        return ;    }    dfs2(l1


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 08:06:44, Gzip enabled