I copied the code on page 16 of the Cilk 5.4.6 Reference Manual, it is theCilk version of the fibonacci code. Iadded the line:
to the code.
Butwhen I compiled the code I got the follwing error:
cilk: 5: error expected constructor destructor or type conversion before 'int'
line 5 is the line
cilk int fib (int n)
What is causing this error?