0_0_18695198_24254.cpp: In function 'int main()': 0_0_18695198_24254.cpp:14:25: error: 'f' was not declared in this scope cout<<dp[a]-f[a-2]<<endl; ^