Main.cc: In function 'int main()': Main.cc:8:2: error: 'f' was not declared in this scope f[1]=1,f[2]=2; ^