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_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));
                               ^


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-22 19:10:35, Gzip enabled