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_20613513_17210.cpp:2:5: error: 'n' does not name a type
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
     ^
0_0_20613513_17210.cpp:2:88: error: 'x' does not name a type
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                        ^
0_0_20613513_17210.cpp:2:102: error: expected unqualified-id before 'for'
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                      ^
0_0_20613513_17210.cpp:2:110: error: 'i' does not name a type
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                              ^
0_0_20613513_17210.cpp:2:114: error: 'i' does not name a type
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                                  ^
0_0_20613513_17210.cpp:2:159: error: expected unqualified-id before 'for'
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                                                                               ^
0_0_20613513_17210.cpp:2:167: error: 'i' does not name a type
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                                                                                       ^
0_0_20613513_17210.cpp:2:172: error: 'i' does not name a type
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                                                                                            ^
0_0_20613513_17210.cpp:2:217: error: 'ans' does not name a type
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                                                                                                                                         ^
0_0_20613513_17210.cpp:2:239: error: expected constructor, destructor, or type conversion before '(' token
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                                                                                                                                                               ^
0_0_20613513_17210.cpp:2:264: error: expected declaration before '}' token
     n)        {            printf("100.00000\n");            continue;        }        x=y=0;        for(i=0;i<s;i++)            x+=c(n,i)*pow(2,n-i);        for(i=0;i<=s;i++)            y+=c(n,i)*pow(2,n-i);        ans=x/y;        printf("%0.5lf\n",ans*100);    }    return 0;}
                                                                                                                                                                                                                                                                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 06:35:45, Gzip enabled