0_0_33277507_30924.cpp: In function 'int main()':
0_0_33277507_30924.cpp:6:5: error: expected initializer before 'if'
if(n==0)
^
0_0_33277507_30924.cpp:10:5: error: 'else' without a previous 'if'
else
^
0_0_33277507_30924.cpp:12:22: error: 'n' was not declared in this scope
double rec=f(n-1,p);
^
0_0_33277507_30924.cpp:12:26: error: 'p' was not declared in this scope
double rec=f(n-1,p);
^
0_0_33277507_30924.cpp:12:27: error: 'f' was not declared in this scope
double rec=f(n-1,p);
^
0_0_33277507_30924.cpp: In function 'int main()':
0_0_33277507_30924.cpp:27:5: error: redefinition of 'int main()'
int main()
^
0_0_33277507_30924.cpp:3:5: note: 'int main()' previously defined here
int main()
^
0_0_33277507_30924.cpp:33:31: error: 'f' was not declared in this scope
printf("%.3lf\n",f(n,p));
^
|