Main.cc: In function 'int main()': Main.cc:11:9: error: 'f' was not declared in this scope a[i]=f[i-1]*2; ^