0_0_37393294_4494.cpp: In function 'int main()': 0_0_37393294_4494.cpp:28:3: error: 'ans' was not declared in this scope ans[i]=b[i-1]+2*b[i-2]; ^