0_0_33469532_3967.cpp: In function 'int rec(int)':
0_0_33469532_3967.cpp:12:17: error: 'f' was not declared in this scope
return 2*(f(n-1)+f(n-2);)
^
0_0_33469532_3967.cpp:12:25: error: expected ')' before ';' token
return 2*(f(n-1)+f(n-2);)
^
0_0_33469532_3967.cpp:12:26: error: expected primary-expression before ')' token
return 2*(f(n-1)+f(n-2);)
^
0_0_33469532_3967.cpp: In function 'int main()':
0_0_33469532_3967.cpp:20:25: error: 'f' was not declared in this scope
while(cin>>n) cout<<f(n)<<endl;
^
|