0_0_13438682_18028.cpp:6:2: error: stray '#' in program
double x=1;
^
0_0_13438682_18028.cpp:6:8: error: stray '#' in program
double x=1;
^
0_0_13438682_18028.cpp:6:14: error: stray '#' in program
double x=1;
^
0_0_13438682_18028.cpp:7:2: error: stray '#' in program
int i,n;
^
0_0_13438682_18028.cpp:7:8: error: stray '#' in program
int i,n;
^
0_0_13438682_18028.cpp:7:14: error: stray '#' in program
int i,n;
^
0_0_13438682_18028.cpp:8:2: error: stray '#' in program
double a[21]={0};
^
0_0_13438682_18028.cpp:9:2: error: stray '#' in program
for(i=2;i<=20;i++)
^
0_0_13438682_18028.cpp:9:8: error: stray '#' in program
for(i=2;i<=20;i++)
^
0_0_13438682_18028.cpp:9:14: error: stray '#' in program
for(i=2;i<=20;i++)
^
0_0_13438682_18028.cpp:10:2: error: stray '#' in program
{
^
0_0_13438682_18028.cpp:10:8: error: stray '#' in program
{
^
0_0_13438682_18028.cpp:10:14: error: stray '#' in program
{
^
0_0_13438682_18028.cpp:11:2: error: stray '#' in program
x=x*i;
^
0_0_13438682_18028.cpp:11:8: error: stray '#' in program
x=x*i;
^
0_0_13438682_18028.cpp:11:14: error: stray '#' in program
x=x*i;
^
0_0_13438682_18028.cpp:11:20: error: stray '#' in program
x=x*i;
^
0_0_13438682_18028.cpp:11:26: error: stray '#' in program
x=x*i;
^
0_0_13438682_18028.cpp:11:32: error: stray '#' in program
x=x*i;
^
0_0_13438682_18028.cpp:11:38: error: stray '#' in program
x=x*i;
^
0_0_13438682_18028.cpp:12:2: error: stray '#' in program
if(i%2==1)
^
0_0_13438682_18028.cpp:12:8: error: stray '#' in program
if(i%2==1)
^
0_0_13438682_18028.cpp:12:14: error: stray '#' in program
if(i%2==1)
^
0_0_13438682_18028.cpp:12:20: error: stray '#' in program
if(i%2==1)
^
0_0_13438682_18028.cpp:12:26: error: stray '#' in program
if(i%2==1)
^
0_0_13438682_18028.cpp:12:32: error: stray '#' in program
if(i%2==1)
^
0_0_13438682_18028.cpp:12:38: error: stray '#' in program
if(i%2==1)
^
0_0_13438682_18028.cpp:13:2: error: stray '#' in program
a[i]=a[i-1]-1.0/x;
^
0_0_13438682_18028.cpp:13:8: error: stray '#' in program
a[i]=a[i-1]-1.0/x;
^
0_0_13438682_18028.cpp:13:14: error: stray '#' in program
a[i]=a[i-1]-1.0/x;
^
0_0_13438682_18028.cpp:14:2: error: stray '#' in program
else
^
0_0_13438682_18028.cpp:14:8: error: stray '#' in program
else
^
0_0_13438682_18028.cpp:14:14: error: stray '#' in program
else
^
0_0_13438682_18028.cpp:14:20: error: stray '#' in program
else
^
0_0_13438682_18028.cpp:14:26: error: stray '#' in program
else
^
0_0_13438682_18028.cpp:14:32: error: stray '#' in program
else
^
0_0_13438682_18028.cpp:14:38: error: stray '#' in program
else
^
0_0_13438682_18028.cpp:15:2: error: stray '#' in program
a[i]=a[i-1]+1.0/x;
^
0_0_13438682_18028.cpp:15:8: error: stray '#' in program
a[i]=a[i-1]+1.0/x;
^
0_0_13438682_18028.cpp:15:14: error: stray '#' in program
a[i]=a[i-1]+1.0/x;
^
0_0_13438682_18028.cpp:16:2: error: stray '#' in program
}
^
0_0_13438682_18028.cpp:16:8: error: stray '#' in program
}
^
0_0_13438682_18028.cpp:16:14: error: stray '#' in program
}
^
0_0_13438682_18028.cpp:17:2: error: stray '#' in program
cin>>n;
^
0_0_13438682_18028.cpp:17:8: error: stray '#' in program
cin>>n;
^
0_0_13438682_18028.cpp:17:14: error: stray '#' in program
cin>>n;
^
0_0_13438682_18028.cpp:18:2: error: stray '#' in program
while(n--)
^
0_0_13438682_18028.cpp:18:8: error: stray '#' in program
while(n--)
^
0_0_13438682_18028.cpp:18:14: error: stray '#' in program
while(n--)
^
0_0_13438682_18028.cpp:19:2: error: stray '#' in program
{
^
0_0_13438682_18028.cpp:19:8: error: stray '#' in program
{
^
0_0_13438682_18028.cpp:19:14: error: stray '#' in program
{
^
0_0_13438682_18028.cpp:20:2: error: stray '#' in program
cin>>i;
^
0_0_13438682_18028.cpp:20:8: error: stray '#' in program
cin>>i;
^
0_0_13438682_18028.cpp:20:14: error: stray '#' in program
cin>>i;
^
0_0_13438682_18028.cpp:20:20: error: stray '#' in program
cin>>i;
^
0_0_13438682_18028.cpp:20:26: error: stray '#' in program
cin>>i;
^
0_0_13438682_18028.cpp:20:32: error: stray '#' in program
cin>>i;
^
0_0_13438682_18028.cpp:20:38: error: stray '#' in program
cin>>i;
^
0_0_13438682_18028.cpp:21:2: error: stray '#' in program
cout<<setiosflags(ios::fixed)<<setprecision(2)<<a[i]*100<<"%"<<endl;
^
0_0_13438682_18028.cpp:21:8: error: stray '#' in program
cout<<setiosflags(ios::fixed)<<setprecision(2)<<a[i]*100<<"%"<<endl;
^
0_0_13438682_18028.cpp:22:2: error: stray '#' in program
}
^
0_0_13438682_18028.cpp:22:8: error: stray '#' in program
}
^
0_0_13438682_18028.cpp:22:14: error: stray '#' in program
}
^
0_0_13438682_18028.cpp:23:2: error: stray '#' in program
return 0;
^
0_0_13438682_18028.cpp: In function 'int main()':
0_0_13438682_18028.cpp:6:3: error: lvalue required as unary '&' operand
double x=1;
^
0_0_13438682_18028.cpp:6:9: error: lvalue required as unary '&' operand
double x=1;
^
0_0_13438682_18028.cpp:6:15: error: lvalue required as unary '&' operand
double x=1;
^
0_0_13438682_18028.cpp:7:3: error: lvalue required as unary '&' operand
int i,n;
^
0_0_13438682_18028.cpp:7:9: error: lvalue required as unary '&' operand
int i,n;
^
0_0_13438682_18028.cpp:7:15: error: lvalue required as unary '&' operand
int i,n;
^
0_0_13438682_18028.cpp:8:3: error: lvalue required as unary '&' operand
double a[21]={0};
^
0_0_13438682_18028.cpp:9:3: error: lvalue required as unary '&' operand
for(i=2;i<=20;i++)
^
0_0_13438682_18028.cpp:9:9: error: lvalue required as unary '&' operand
for(i=2;i<=20;i++)
^
0_0_13438682_18028.cpp:9:15: error: lvalue required as unary '&' operand
for(i=2;i<=20;i++)
^
0_0_13438682_18028.cpp:10:3: error: lvalue required as unary '&' operand
{
^
0_0_13438682_18028.cpp:10:9: error: lvalue required as unary '&' operand
{
^
0_0_13438682_18028.cpp:10:15: error: lvalue required as unary '&' operand
{
^
0_0_13438682_18028.cpp:11:3: error: lvalue required as unary '&' operand
x=x*i;
^
0_0_13438682_18028.cpp:11:9: error: lvalue required as unary '&' operand
x=x*i;
^
0_0_13438682_18028.cpp:11:15: error: lvalue required as unary '&' operand
x=x*i;
^
0_0_13438682_18028.cpp:11:21: error: lvalue required as unary '&' operand
|