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;}
^
|